
        :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;
            --insomnia-color: #7209b7;
            --insomnia-light: #e0c4fd;
            --sleep-mild: #4cc9f0;
            --sleep-moderate: #f72585;
            --sleep-severe: #3a0ca3;
        }
         
        .page-header {
            background: linear-gradient(135deg, rgba(224, 196, 253, 0.4) 0%, rgba(114, 9, 183, 0.4) 100%);
            padding: 1.5rem 0;
            margin-bottom: 2rem;
            border-bottom: 1px solid rgba(114, 9, 183, 0.2);
            position: relative;
            overflow: hidden;      color: var(--text-color);
        }
         
        .breadcrumb {
            background-color: transparent;
            padding: 0.5rem 0;
            margin-bottom: 0.5rem;
        }
        
        .breadcrumb-item a {
            color: var(--text-muted);
            text-decoration: none;
        }
        
        .breadcrumb-item.active {
            color: var(--text-color);
        }
         
        .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;
        }
         
        /* 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(114, 9, 183, 0.05);
        }
         
        /* ISI Specific Styles */
        .isi-result {
            background: linear-gradient(135deg, rgba(224, 196, 253, 0.4) 0%, rgba(114, 9, 183, 0.4) 100%);
            border-radius: 12px;
            padding: 2rem;
            text-align: center;
            margin: 2rem 0;
            border: 1px solid rgba(114, 9, 183, 0.2);
        }
        
        .isi-score-value {
            font-size: 4rem;
            font-weight: 800;
            color: var(--insomnia-color);
            margin: 1rem 0;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
        }
        
        .isi-severity {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            color: var(--text-color);
            font-weight: 600;
        }
        
        .isi-scale {
            position: relative;
            width: 300px;
            height: 60px;
            margin: 2rem auto;
            background: linear-gradient(90deg, #28a745 0%, #ffc107 50%, #dc3545 100%);
            border-radius: 30px;
        }
        
        .isi-marker {
            position: absolute;
            top: -10px;
            width: 20px;
            height: 80px;
            background: transparent;
            border-left: 2px dashed white;
            transform: translateX(-50%);
        }
        
        .isi-marker-label {
            position: absolute;
            top: -30px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.8rem;
            color: var(--text-muted);
            white-space: nowrap;
        }
        
        .isi-needle {
            position: absolute;
            top: -20px;
            left: 0;
            width: 40px;
            height: 100px;
            transform: translateX(-50%);
            transition: left 1s ease;
        }
        
        .needle-shaft {
            position: absolute;
            left: 50%;
            top: 0;
            width: 4px;
            height: 70px;
            background: var(--text-color);
            transform: translateX(-50%);
        }
        
        .needle-head {
            position: absolute;
            left: 50%;
            top: 0;
            width: 0;
            height: 0;
            border-left: 10px solid transparent;
            border-right: 10px solid transparent;
            border-top: 15px solid var(--text-color);
            transform: translateX(-50%);
        }
        
        .isi-labels {
            display: flex;
            justify-content: space-between;
            width: 300px;
            margin: 0.5rem auto;
            font-size: 0.8rem;
            color: var(--text-muted);
        }
        
        .isi-interpretation {
            padding: 1.5rem;
            border-radius: 8px;
            margin: 1.5rem 0;
            border-left: 5px solid;
        }
        
        .isi-none {
            background-color: rgba(40, 167, 69, 0.1);
            border-left-color: var(--medical-green);
        }
        
        .isi-subthreshold {
            background-color: rgba(255, 193, 7, 0.1);
            border-left-color: var(--medical-yellow);
        }
        
        .isi-moderate {
            background-color: rgba(253, 126, 20, 0.1);
            border-left-color: var(--medical-orange);
        }
        
        .isi-severe {
            background-color: rgba(220, 53, 69, 0.1);
            border-left-color: var(--medical-red);
        }
        
        .question-card {
            background-color: rgba(114, 9, 183, 0.05);
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            border: 1px solid rgba(114, 9, 183, 0.2);
        }
        
        .question-item {
            margin-bottom: 2rem;
            padding: 1.5rem;
            background-color: white;
            border-radius: 8px;
            border: 1px solid var(--border-color);
        }
        
        .question-text {
            font-weight: 600;
            margin-bottom: 1.5rem;
            color: var(--insomnia-color);
            font-size: 1.1rem;
        }
        
        .option-label {
            display: block;
            margin-bottom: 0.75rem;
            padding: 0.75rem;
            border-radius: 6px;
            border: 1px solid var(--border-color);
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .option-label:hover {
            background-color: rgba(114, 9, 183, 0.05);
            border-color: var(--insomnia-color);
        }
        
        .option-label.selected {
            background-color: rgba(114, 9, 183, 0.1);
            border-color: var(--insomnia-color);
        }
        
        .option-radio {
            margin-right: 1rem;
        }
        
        .option-score {
            float: right;
            background-color: var(--insomnia-color);
            color: white;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
        }
        
        .form-check-input:checked {
            background-color: var(--insomnia-color);
            border-color: var(--insomnia-color);
        }
        
        .form-check-input:focus {
            border-color: var(--insomnia-color);
            box-shadow: 0 0 0 0.25rem rgba(114, 9, 183, 0.25);
        }
        
        .severity-indicator {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
            margin-left: 0.5rem;
        }
        
        .severity-none {
            background-color: rgba(40, 167, 69, 0.1);
            color: #28a745;
        }
        
        .severity-subthreshold {
            background-color: rgba(255, 193, 7, 0.1);
            color: #ffc107;
        }
        
        .severity-moderate {
            background-color: rgba(253, 126, 20, 0.1);
            color: #fd7e14;
        }
        
        .severity-severe {
            background-color: rgba(220, 53, 69, 0.1);
            color: #dc3545;
        }
        
        .recommendation-card {
            background-color: white;
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
            margin-bottom: 1rem;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .recommendation-icon {
            width: 48px;
            height: 48px;
            border-radius: 8px;
            background-color: rgba(114, 9, 183, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1rem;
            color: var(--insomnia-color);
            font-size: 1.25rem;
        }
        
        .isi-chart {
            position: relative;
            height: 350px;
            width: 100%;
            margin: 1.5rem 0;
        }
        
        .insomnia-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(114, 9, 183, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
            color: var(--insomnia-color);
            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;
        }
        
        .faq-section {
            margin-top: 2rem;
        }
        
        .accordion-button:not(.collapsed) {
            background-color: rgba(114, 9, 183, 0.1);
            color: var(--insomnia-color);
        }
        
        /* Sleep visualization */
        .sleep-visualization {
            width: 200px;
            height: 200px;
            margin: 2rem auto;
            position: relative;
        }
        
        .sleep-svg {
            width: 100%;
            height: 100%;
            fill: var(--insomnia-light);
            stroke: var(--insomnia-color);
            stroke-width: 2;
        }
        
        .sleep-animation {
            animation: sleepCycle 3s ease-in-out infinite;
        }
        
        @keyframes sleepCycle {
            0% { opacity: 0.7; }
            50% { opacity: 1; }
            100% { opacity: 0.7; }
        }
        
        /* Progress tracker */
        .progress-tracker {
            display: flex;
            justify-content: space-between;
            margin: 2rem 0;
            position: relative;
        }
        
        .progress-step {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-color: #e9ecef;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            color: var(--text-muted);
            position: relative;
            z-index: 2;
        }
        
        .progress-step.active {
            background-color: var(--insomnia-color);
            color: white;
        }
        
        .progress-step.completed {
            background-color: var(--medical-green);
            color: white;
        }
        
        .progress-line {
            position: absolute;
            top: 18px;
            left: 18px;
            right: 18px;
            height: 4px;
            background-color: #e9ecef;
            z-index: 1;
        }
        
        .progress-fill {
            position: absolute;
            top: 18px;
            left: 18px;
            height: 4px;
            background-color: var(--insomnia-color);
            z-index: 1;
            transition: width 0.5s ease;
        }
        
        @media (max-width: 768px) {
            .isi-score-value {
                font-size: 3rem;
            }
            
            .insomnia-applications {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            }
            
            .isi-scale {
                width: 250px;
            }
            
            .isi-labels {
                width: 250px;
            }
        }
        
        @media (max-width: 576px) {
            .question-item {
                padding: 1rem;
            }
            
            .insomnia-applications {
                grid-template-columns: 1fr;
            }
            
            .isi-scale {
                width: 200px;
            }
            
            .isi-labels {
                width: 200px;
            }
            
            .progress-tracker {
                margin: 1rem 0;
            }
            
            .progress-step {
                width: 30px;
                height: 30px;
                font-size: 0.9rem;
            }
            
            .progress-line, .progress-fill {
                top: 15px;
            }
        }
        
        /* Symptom tracking */
        .symptom-tracking {
            background-color: rgba(114, 9, 183, 0.05);
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            border: 1px solid rgba(114, 9, 183, 0.2);
        }
        
        .symptom-item {
            margin-bottom: 1rem;
            padding: 1rem;
            background-color: white;
            border-radius: 8px;
            border: 1px solid var(--border-color);
        }
        
        /* CBT-I techniques */
        .cbti-techniques {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1rem;
            margin: 1.5rem 0;
        }
        
        .technique-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);
        }
        
        .technique-icon {
            width: 48px;
            height: 48px;
            border-radius: 8px;
            background-color: rgba(114, 9, 183, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
            color: var(--insomnia-color);
            font-size: 1.25rem;
        }
    