        :root { 
            --accent-color: #d35400;
            --light-gray: #f8f9fa;
            --border-color: #eaeaea;
            --text-color: #333;
            --text-muted: #6c757d;
            --stress-low: #28a745;
            --stress-moderate: #ffc107;
            --stress-high: #fd7e14;
            --stress-severe: #dc3545;
        }
         
       
        .question-card {
            background-color: white;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 1.25rem;
            margin-bottom: 1rem;
            transition: all 0.3s;
        }
        
        .question-card:hover {
            border-color: var(--secondary-color);
            box-shadow: 0 2px 6px rgba(0,0,0,0.05);
        }
        
        .question-number {
            display: inline-block;
            width: 26px;
            height: 26px;
            background-color: var(--primary-color);
            color: white;
            border-radius: 50%;
            text-align: center;
            line-height: 26px;
            font-weight: 600;
            margin-right: 0.75rem;
            font-size: 0.9rem;
        }
        
        .question-text {
            font-weight: 500;
            margin-bottom: 0.75rem;
            font-size: 1rem;
            line-height: 1.5;
        }
        
        /* Compact Radio Button Grid */
        .option-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 0.6rem;
        }
        
        .option-label {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            border: 2px solid var(--border-color);
            border-radius: 6px;
            padding: 0.75rem 0.5rem;
            cursor: pointer;
            transition: all 0.3s;
            text-align: center;
            min-height: 80px;
        }
        
        .option-label:hover {
            border-color: var(--secondary-color);
            background-color: rgba(253, 235, 208, 0.3);
        }
        
        .option-label.selected {
            border-color: var(--primary-color);
            background-color: rgba(230, 126, 34, 0.05);
        }
        
        .option-value {
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 0.25rem;
            font-size: 0.9rem;
        }
        
        .option-text {
            font-size: 0.85rem;
            color: var(--text-color);
            line-height: 1.3;
        }
        
        input[type="radio"] {
            display: none;
        }
     
        /* Stress Levels - Compact */
        .stress-level {
            padding: 1rem;
            border-radius: 8px;
            margin-bottom: 1rem;
            border-left: 5px solid;
        }
        
        .stress-low {
            background-color: rgba(40, 167, 69, 0.1);
            border-left-color: var(--stress-low);
        }
        
        .stress-moderate {
            background-color: rgba(255, 193, 7, 0.1);
            border-left-color: var(--stress-moderate);
        }
        
        .stress-high {
            background-color: rgba(253, 126, 20, 0.1);
            border-left-color: var(--stress-high);
        }
        
        .stress-severe {
            background-color: rgba(220, 53, 69, 0.1);
            border-left-color: var(--stress-severe);
        }
        
        .stress-title {
            font-weight: 600;
            margin-bottom: 0.25rem;
            font-size: 1.1rem;
        }
        
        /* Compact Recommendations */
        .recommendation-card {
            background: white;
            border-radius: 6px;
            padding: 1rem;
            border: 1px solid var(--border-color);
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            margin-bottom: 0.75rem;
        }
        
        .recommendation-icon {
            width: 36px;
            height: 36px;
            border-radius: 6px;
            background-color: rgba(230, 126, 34, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 0.75rem;
            color: var(--primary-color);
            font-size: 1rem;
        }
        
        /* Progress Bar - Compact */
        .progress-container {
            margin: 1rem 0;
        }
        
        .progress {
            height: 10px;
            border-radius: 5px;
            background-color: var(--light-gray);
            margin-bottom: 0.5rem;
        }
        
        .progress-bar {
            background-color: var(--primary-color);
            border-radius: 5px;
        }
        
        .progress-labels {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            color: var(--text-muted);
        }
        
        /* Compact Chart Container */
        .chart-container {
            position: relative;
            height: 280px;
            width: 100%;
            margin: 1.5rem 0;
        }
        
        /* Content Sections - Compact */
        .section-title {
            font-weight: 600;
            margin-bottom: 0.75rem;
            color: var(--primary-color);
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--border-color);
            font-size: 1.2rem;
        }
        
        .info-box {
            background-color: rgba(230, 126, 34, 0.05);
            border-left: 3px solid var(--primary-color);
            padding: 0.9rem;
            border-radius: 0 4px 4px 0;
            margin: 1.25rem 0;
            font-size: 0.95rem;
        }
        
        .warning-box {
            background-color: rgba(220, 53, 69, 0.05);
            border-left: 3px solid var(--stress-severe);
            padding: 0.9rem;
            border-radius: 0 4px 4px 0;
            margin: 1.25rem 0;
            font-size: 0.95rem;
        }
       
        /* Responsive Adjustments */
        @media (max-width: 768px) {
            .tool-card {
                padding: 1.25rem;
            }
            
            .option-grid {
                grid-template-columns: 1fr;
            }
            
            .question-text {
                font-size: 0.95rem;
            }
            
            .chart-container {
                height: 240px;
            }
        } 
        /* Stress-specific styles */
        .stress-resource-card {
            background: white;
            border-radius: 8px;
            padding: 1rem;
            border: 1px solid var(--border-color);
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            margin-bottom: 0.75rem;
        }
        
        .resource-icon {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            background-color: rgba(230, 126, 34, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 0.75rem;
            color: var(--primary-color);
            font-size: 1.1rem;
        }
        
        .resource-title {
            font-weight: 600;
            margin-bottom: 0.4rem;
            color: var(--text-color);
            font-size: 1rem;
        }
        
        .resource-desc {
            color: var(--text-muted);
            font-size: 0.85rem;
        }
        
        .resource-link {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 500;
            margin-top: 0.4rem;
            display: inline-block;
            font-size: 0.9rem;
        }
        
        .resource-link:hover {
            text-decoration: underline;
        }
        
        .symptom-checklist {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 0.75rem;
            margin: 1.25rem 0;
        }
        
        .symptom-card {
            background: white;
            border-radius: 8px;
            padding: 1rem;
            border: 1px solid var(--border-color);
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .symptom-title {
            font-weight: 600;
            margin-bottom: 0.4rem;
            color: var(--text-color);
            font-size: 0.95rem;
        }
        
        .symptom-desc {
            color: var(--text-muted);
            font-size: 0.85rem;
        }
        
        .faq-section {
            margin-top: 1.5rem;
        }
        
        .accordion-button {
            font-size: 0.95rem;
            padding: 0.75rem 1rem;
        }
        
        .accordion-button:not(.collapsed) {
            background-color: rgba(230, 126, 34, 0.05);
            color: var(--primary-color);
            font-weight: 600;
        }
        
        .accordion-button:focus {
            box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
            border-color: var(--primary-color);
        }
        
        .accordion-body {
            font-size: 0.9rem;
            padding: 1rem;
        }
        
        .generating-indicator {
            display: none;
            text-align: center;
            padding: 0.9rem;
            color: var(--text-muted);
            font-size: 0.95rem;
        }
        
        /* Stress chart styling */
        .stress-chart-container {
            position: relative;
            height: 300px;
            width: 100%;
            margin: 1.25rem 0;
        }
        
        /* Compact table */
        .compact-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1rem 0;
            font-size: 0.9rem;
        }
        
        .compact-table th, .compact-table td {
            padding: 0.6rem;
            text-align: left;
            border: 1px solid var(--border-color);
        }
        
        .compact-table th {
            background-color: var(--light-gray);
            font-weight: 600;
        }
        
        .compact-table tr:nth-child(even) {
            background-color: rgba(230, 126, 34, 0.05);
        }
        
        /* PSS-10 scoring guide */
        .scoring-guide {
            background-color: rgba(230, 126, 34, 0.05);
            border-radius: 8px;
            padding: 1rem;
            margin: 1rem 0;
            border-left: 4px solid var(--primary-color);
        }
        
        /* Badge styles for stress level */
        .stress-badge {
            display: inline-block;
            padding: 0.25rem 0.6rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
            margin-right: 0.4rem;
        }
        
        .badge-low {
            background-color: rgba(40, 167, 69, 0.1);
            color: var(--stress-low);
        }
        
        .badge-moderate {
            background-color: rgba(255, 193, 7, 0.1);
            color: var(--stress-moderate);
        }
        
        .badge-high {
            background-color: rgba(253, 126, 20, 0.1);
            color: var(--stress-high);
        }
        
        .badge-severe {
            background-color: rgba(220, 53, 69, 0.1);
            color: var(--stress-severe);
        }
        
        /* Stress source assessment */
        .stress-source-assessment {
            background-color: white;
            border-radius: 8px;
            padding: 1.25rem;
            margin: 1rem 0;
            border: 1px solid var(--border-color);
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        /* Stress management techniques */
        .technique-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 0.75rem;
            margin: 1.25rem 0;
        }
        
        .technique-card {
            background: white;
            border-radius: 8px;
            padding: 1rem;
            border: 1px solid var(--border-color);
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .technique-icon {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            background-color: rgba(230, 126, 34, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 0.75rem;
            color: var(--primary-color);
        }
        
        .technique-title {
            font-weight: 600;
            margin-bottom: 0.4rem;
            color: var(--text-color);
            font-size: 0.95rem;
        }
        
        .technique-desc {
            color: var(--text-muted);
            font-size: 0.85rem;
        }
        
        /* Stressor categories */
        .stressor-categories {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 0.75rem;
            margin: 1rem 0;
        }
        
        .stressor-card {
            background: white;
            border-radius: 8px;
            padding: 0.9rem;
            border: 1px solid var(--border-color);
            text-align: center;
        }
        
        .stressor-value {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 0.25rem;
        }
        
        .stressor-label {
            font-size: 0.8rem;
            color: var(--text-muted);
        }
        
        /* Breathing exercise */
        .breathing-exercise {
            background: linear-gradient(135deg, rgba(230, 126, 34, 0.1) 0%, rgba(253, 235, 208, 0.3) 100%);
            border-radius: 8px;
            padding: 1.25rem;
            margin: 1.25rem 0;
            border: 1px solid rgba(230, 126, 34, 0.2);
            text-align: center;
        }
        
        .breathing-circle {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background-color: rgba(230, 126, 34, 0.1);
            border: 3px solid var(--primary-color);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-color);
            transition: all 1s ease;
        }
        
        /* Alert styles */
        .alert-stress {
            background-color: rgba(253, 126, 20, 0.1);
            border: 1px solid rgba(253, 126, 20, 0.2);
            border-left: 4px solid var(--stress-high);
            border-radius: 6px;
            padding: 1rem;
            margin: 1rem 0;
        }
        
        /* Print styles */
        @media print {
            .no-print {
                display: none !important;
            }
            
            .tool-card {
                box-shadow: none;
                border: 1px solid #ddd;
            }
            
            .result-container {
                break-inside: avoid;
            }
        }
        
        /* Stress tracking timeline */
        .stress-timeline {
            display: flex;
            justify-content: space-between;
            margin: 1rem 0;
            padding: 0.75rem;
            background-color: var(--light-gray);
            border-radius: 8px;
        }
        
        .timeline-point {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            flex: 1;
        }
        
        .timeline-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: var(--border-color);
            margin-bottom: 0.5rem;
        }
        
        .timeline-dot.active {
            background-color: var(--primary-color);
        }
        
        .timeline-label {
            font-size: 0.8rem;
            color: var(--text-muted);
        }
        
        /* History tracking */
        .history-container {
            margin-top: 1.5rem;
            padding: 1rem;
            background-color: var(--light-gray);
            border-radius: 8px;
            border: 1px solid var(--border-color);
        }
        
        .history-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem;
            border-bottom: 1px solid var(--border-color);
        }
        
        .history-item:last-child {
            border-bottom: none;
        }
        
        .history-date {
            font-size: 0.9rem;
            color: var(--text-muted);
        }
        
        .history-score {
            font-weight: 600;
            color: var(--primary-color);
        }
        
        /* Biofeedback visualization */
        .biofeedback-container {
            margin: 1rem 0;
            padding: 1.25rem;
            background: white;
            border-radius: 8px;
            border: 1px solid var(--border-color);
        }
        
        .hrv-indicator {
            width: 100%;
            height: 20px;
            background: linear-gradient(to right, var(--stress-low), var(--stress-moderate), var(--stress-high), var(--stress-severe));
            border-radius: 10px;
            margin-top: 0.5rem;
            position: relative;
        }
        
        .hrv-marker {
            position: absolute;
            top: -5px;
            width: 10px;
            height: 30px;
            background-color: var(--primary-color);
            border-radius: 5px;
            transform: translateX(-50%);
        }
    