        :root {
            --primary-color: #2c7da0;
            --secondary-color: #a9d6e5;
            --accent-color: #01497c;
            --light-gray: #f8f9fa;
            --border-color: #eaeaea;
            --text-color: #333;
            --text-muted: #6c757d;
            --success-color: #28a745;
            --warning-color: #ffc107;
            --medical-red: #dc3545;
            --medical-green: #198754;
            --medical-yellow: #ffc107;
            --medical-orange: #fd7e14;
            --dehydration-blue: #0d6efd;
            --dehydration-orange: #fd7e14;
        }
          
        /* Dehydration Severity Indicators */
        .severity-indicator {
            padding: 1rem;
            border-radius: 8px;
            margin: 1rem 0;
            border-left: 5px solid;
        }
        
        .severity-none {
            background-color: rgba(40, 167, 69, 0.1);
            border-left-color: var(--medical-green);
        }
        
        .severity-mild {
            background-color: rgba(255, 193, 7, 0.1);
            border-left-color: var(--medical-yellow);
        }
        
        .severity-moderate {
            background-color: rgba(253, 126, 20, 0.1);
            border-left-color: var(--dehydration-orange);
        }
        
        .severity-severe {
            background-color: rgba(220, 53, 69, 0.1);
            border-left-color: var(--medical-red);
        }
        
        /* Clinical Signs Grid */
        .signs-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 1rem;
            margin: 1.5rem 0;
        }
        
        .sign-card {
            background: white;
            border-radius: 8px;
            padding: 1.25rem;
            border: 1px solid var(--border-color);
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            text-align: center;
        }
        
        .sign-card.active {
            border: 2px solid var(--dehydration-blue);
            background-color: rgba(13, 110, 253, 0.05);
        }
        
        .sign-name {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--text-color);
        }
        
        .sign-value {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--dehydration-blue);
        }
         
        .medical-info-box {
            background-color: rgba(220, 53, 69, 0.05);
            border-left: 3px solid var(--medical-red);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 0;
        }
        
        /* Related Tools */
        .related-tools {
            background-color: white;
            border-radius: 8px;
            border: 1px solid var(--border-color); 
            margin-bottom: 1.5rem;
        }
         
        /* Responsive Adjustments */
        @media (max-width: 768px) { 
            .signs-grid {
                grid-template-columns: 1fr;
            }
        }
        
        /* Patient Type Toggle */
        .patient-type {
            display: flex;
            background-color: var(--light-gray);
            border-radius: 6px;
            padding: 4px;
            margin-bottom: 1.5rem;
        }
        
        .type-btn {
            flex: 1;
            text-align: center;
            padding: 0.75rem;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 600;
        }
        
        .type-btn.active {
            background-color: var(--primary-color);
            color: white;
        }
        
        /* Reference table */
        .reference-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
        }
        
        .reference-table th, .reference-table td {
            padding: 0.75rem;
            text-align: left;
            border: 1px solid var(--border-color);
        }
        
        .reference-table th {
            background-color: var(--light-gray);
            font-weight: 600;
        }
        
        .reference-table tr:nth-child(even) {
            background-color: rgba(44, 125, 160, 0.05);
        }
        
        .generating-indicator {
            display: none;
            text-align: center;
            padding: 1rem;
            color: var(--text-muted);
        }
        
        /* Dehydration-specific styles */
        .dehydration-formula-box {
            background-color: rgba(13, 110, 253, 0.05);
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            border: 1px solid rgba(13, 110, 253, 0.2);
        }
        
        .formula-text {
            font-family: 'Courier New', monospace;
            font-size: 1.1rem;
            color: var(--accent-color);
            margin-bottom: 0.5rem;
        }
        
        .formula-title {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--dehydration-blue);
        }
        
        .dehydration-applications {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1rem;
            margin: 1.5rem 0;
        }
        
        .application-card {
            background: white;
            border-radius: 8px;
            padding: 1.25rem;
            border: 1px solid var(--border-color);
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .application-icon {
            width: 48px;
            height: 48px;
            border-radius: 8px;
            background-color: rgba(13, 110, 253, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
            color: var(--dehydration-blue);
            font-size: 1.25rem;
        }
        
        .application-title {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--text-color);
        }
        
        .application-desc {
            color: var(--text-muted);
            font-size: 0.9rem;
        }
        
        /* Age category indicators */
        .age-category {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
            margin-right: 0.5rem;
        }
        
        .age-child {
            background-color: rgba(40, 167, 69, 0.1);
            color: #28a745;
        }
        
        .age-adult {
            background-color: rgba(0, 123, 255, 0.1);
            color: #007bff;
        }
        
        .age-elderly {
            background-color: rgba(108, 117, 125, 0.1);
            color: #6c757d;
        }
        
        /* Range slider styling */
        .form-range {
            width: 100%;
            height: 1rem;
            padding: 0;
            background-color: transparent;
            -webkit-appearance: none;
        }
        
        .form-range:focus {
            outline: none;
        }
        
        .form-range::-webkit-slider-thumb {
            width: 1rem;
            height: 1rem;
            margin-top: -0.5rem;
            background-color: var(--primary-color);
            border: 0;
            border-radius: 1rem;
            -webkit-appearance: none;
        }
        
        .form-range::-webkit-slider-runnable-track {
            width: 100%;
            height: 0.5rem;
            cursor: pointer;
            animate: 0.2s;
            background: var(--light-gray);
            border-radius: 0.5rem;
        }
        
        .slider-value {
            background-color: var(--primary-color);
            color: white;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            font-size: 0.8rem;
            margin-left: 0.5rem;
        }
        
        /* Dehydration chart styling */
        .dehydration-chart-container {
            position: relative;
            height: 350px;
            width: 100%;
            margin: 1.5rem 0;
        }
        
        /* Fluid deficit calculator */
        .fluid-calculator {
            background-color: rgba(13, 110, 253, 0.05);
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            border: 1px solid rgba(13, 110, 253, 0.2);
        }
        
        /* Symptom checkbox styling */
        .symptom-checkbox {
            display: flex;
            align-items: center;
            padding: 0.75rem;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            margin-bottom: 0.5rem;
            transition: all 0.3s;
            cursor: pointer;
        }
        
        .symptom-checkbox:hover {
            background-color: var(--light-gray);
        }
        
        .symptom-checkbox.selected {
            border: 2px solid var(--dehydration-blue);
            background-color: rgba(13, 110, 253, 0.05);
        }
        
        .symptom-checkbox input {
            margin-right: 1rem;
        }
        
        .symptom-name {
            font-weight: 500;
        }
        
        .symptom-points {
            margin-left: auto;
            background-color: var(--dehydration-blue);
            color: white;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            font-size: 0.85rem;
            font-weight: 600;
        }
        
        /* Clinical Scale Cards */
        .scale-card {
            background: white;
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
            margin-bottom: 1.5rem;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .scale-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }
        
        .scale-title {
            font-weight: 600;
            color: var(--dehydration-blue);
            margin-bottom: 0;
        }
        
        .scale-score {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--dehydration-blue);
        }
        
        /* Risk Level Indicator */
        .risk-level {
            display: inline-block;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-weight: 600;
            margin-right: 0.5rem;
        }
        
        .risk-low {
            background-color: rgba(40, 167, 69, 0.15);
            color: #28a745;
        }
        
        .risk-moderate {
            background-color: rgba(255, 193, 7, 0.15);
            color: #856404;
        }
        
        .risk-high {
            background-color: rgba(220, 53, 69, 0.15);
            color: #dc3545;
        }
        
        /* New improvements */
        .measurement-system {
            display: flex;
            background-color: var(--light-gray);
            border-radius: 6px;
            padding: 4px;
            margin-bottom: 1.5rem;
        }
        
        .system-btn {
            flex: 1;
            text-align: center;
            padding: 0.75rem;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 600;
        }
        
        .system-btn.active {
            background-color: var(--primary-color);
            color: white;
        }
        
        .scale-selector {
            margin-bottom: 1.5rem;
        }
        
        .scale-option {
            padding: 0.75rem;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            margin-bottom: 0.5rem;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .scale-option:hover {
            background-color: var(--light-gray);
        }
        
        .scale-option.selected {
            border: 2px solid var(--dehydration-blue);
            background-color: rgba(13, 110, 253, 0.05);
        }
        
        .scale-option input {
            margin-right: 0.75rem;
        }
        
        .history-container {
            max-height: 300px;
            overflow-y: auto;
            margin-top: 1rem;
        }
        
        .history-item {
            padding: 0.75rem;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            margin-bottom: 0.5rem;
            background-color: white;
        }
        
        .history-item:hover {
            background-color: var(--light-gray);
        }
        
        .history-date {
            font-weight: 600;
            color: var(--dehydration-blue);
        }
        
        .history-score {
            float: right;
            font-weight: 600;
        }
        
        .ongoing-losses {
            background-color: rgba(253, 126, 20, 0.05);
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            border: 1px solid rgba(253, 126, 20, 0.2);
        }
        
        .print-btn {
            margin-top: 1rem;
        }
        
        .export-btn {
            margin-top: 0.5rem;
        }
    

 
                        .section { margin-bottom: 20px; }
                        .severity { padding: 10px; border-left: 5px solid; margin: 10px 0; }
                        .severity-mild { background-color: #fff3cd; border-left-color: #ffc107; }
                        .severity-moderate { background-color: #ffe5d0; border-left-color: #fd7e14; }
                        .severity-severe { background-color: #f8d7da; border-left-color: #dc3545; }
                        table { width: 100%; border-collapse: collapse; margin: 10px 0; }
                        th, td { border: 1px solid #ddd; padding: 8px; text-align: left; }
                        th { background-color: #f2f2f2; }
                    