* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: white;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    border-bottom: 3px solid #500000;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

h1 {
    color: #500000;
    font-size: 2.5rem;
    font-weight: 700;
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-top: 5px;
}

.calculator-card, .info-card {
    background: white;
    border: 2px solid #500000;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(80, 0, 0, 0.1);
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #500000;
}

input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: #500000;
    box-shadow: 0 0 0 3px rgba(80, 0, 0, 0.1);
}

.calculate-btn {
    width: 100%;
    background-color: #500000;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.calculate-btn:hover {
    background-color: #400000;
}

.results {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.results.hidden {
    display: none;
}

.results h3 {
    color: #500000;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.result-section {
    margin-bottom: 25px;
}

.result-section h4 {
    color: #500000;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.result-label {
    font-weight: 500;
    color: #666;
}

.result-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: #500000;
}

.interpretation {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
}

.interpretation.normal {
    background-color: #e8f5e8;
    color: #2d5a2d;
    border: 1px solid #4caf50;
}

.interpretation.hyperosmolar {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.interpretation.hhs {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #dc3545;
}

.info-card h3 {
    color: #500000;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.info-section {
    margin-bottom: 20px;
}

.info-section h4 {
    color: #500000;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.info-section ul {
    list-style-position: inside;
    color: #666;
}

.info-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .calculator-card, .info-card {
        padding: 20px;
    }
    
    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}