/* ==========================================================================
   VI. SYMPTOMS TAB (`#symptoms-tab`)
   ========================================================================== */

/* --- Tooltip Styles ---
   Custom tooltip styles for data-tooltip attributes */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::before,
[data-tooltip]::after {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1000;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    margin-bottom: 5px;
    padding: 4px 8px;
    background: #000000;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 400;
    white-space: nowrap;
    border-radius: 0; /* Mindstate: Sharp corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    text-align: center;
    line-height: 1.2;
}

[data-tooltip]::after {
    content: '';
    margin-bottom: 0;
    border: 5px solid transparent;
    border-top-color: #000000;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

/* For buttons that may have long tooltips, allow wrapping */
.filter-sort-btn[data-tooltip]::before {
    white-space: normal;
}

/* Filter-specific styles removed - using shared filter card component instead */

/* Enhanced Search Input for Symptoms */
/* Mindstate: Simplified search input */
#symptomSearch {
    background: #FFFFFF; /* Mindstate: White background */
    box-shadow: none; /* Mindstate: Remove inset shadow */
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1rem;
    border-radius: 0; /* Mindstate: Sharp corners */
    transition: all var(--transition-medium) ease;
    border: 1px solid #3B3B3B; /* Mindstate: Dark border */
    position: relative;
}

#symptomSearch:focus {
    box-shadow: none; /* Mindstate: No shadow on focus */
    border-color: #000000; /* Mindstate: Black border on focus */
    transform: translateY(-1px);
}

/* Search field styling removed - emoji removed */

/* Neumorphic Checkbox Groups for Severity/Lability Filters */
/* Mindstate: Simplified checkbox groups */
#symptoms-tab .filter-checkbox-group {
    background: #FAFAFA; /* Mindstate: Very light gray */
    border-radius: 0; /* Mindstate: Sharp corners */
    padding: var(--spacing-sm);
    box-shadow: none; /* Mindstate: Remove inset shadow */
    border: 1px solid #EBEBEB; /* Mindstate: Light border */
}

#symptoms-tab .filter-checkbox-group label {
    display: flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    margin-bottom: 2px;
    border-radius: 0; /* Mindstate: Sharp corners */
    cursor: pointer;
    transition: all var(--transition-fast) ease;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
    color: #000000; /* Mindstate: Pure black text */
}

/* Mindstate: Remove hover shimmer animation */
#symptoms-tab .filter-checkbox-group label::before {
    display: none; /* Mindstate: Remove shimmer effect */
}

#symptoms-tab .filter-checkbox-group label:hover {
    background: #F4F4F4; /* Mindstate: Light gray on hover */
    transform: translateX(2px);
    color: #000000; /* Mindstate: Keep black text */
}

#symptoms-tab .filter-checkbox-group input[type="checkbox"] {
    margin-right: var(--spacing-md);
    width: 20px;
    height: 20px;
}

/* Mindstate: Simplified checked state */
#symptoms-tab .filter-checkbox-group label.checked {
    background: #F0F8F0; /* Mindstate: Very light green tint */
    color: #000000; /* Mindstate: Black text */
    font-weight: 500;
    box-shadow: none; /* Mindstate: No shadow */
    border: 1px solid #6B8E23; /* Mindstate: Data green border */
}

/* Symptom Sort Buttons */
#symptomSortButtons {
    /* Container styles in HTML */
}

/* Symptom Grid - Container for masonry layout */
#symptomGrid {
    margin-bottom: var(--spacing-xl);
}

/* Symptoms Masonry Container */
.symptoms-masonry-container {
    display: flex;
    gap: var(--spacing-md);
    width: 100%;
}

/* Individual Column */
.symptoms-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

@media (max-width: 768px) {
    .symptoms-masonry-container {
        flex-direction: column;
    }
    
    .symptoms-column {
        width: 100%;
    }
}

/* Mindstate: Simplified symptom cards */
#symptomGrid .card {
    background: #FFFFFF; /* Mindstate: White background */
    border-radius: 0; /* Mindstate: Sharp corners */
    padding: var(--spacing-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* Mindstate: Minimal shadow */
    transition: all var(--transition-medium) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid #F4F4F4; /* Mindstate: Light border */
}

/* Mindstate: Remove decorative top border */
/* #symptomGrid .card::before removed */

#symptomGrid .card:hover {
    transform: translateY(-2px); /* Mindstate: Reduced movement, removed scale */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); /* Mindstate: Subtle shadow */
}

#symptomGrid .card h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #000000; /* Mindstate: Pure black */
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.3em * 3);
    letter-spacing: -0.02em; /* Mindstate: Tighter letter spacing */
}

/* Mindstate: Simplified badge */
#symptomGrid .card .badge {
    background: #F4F4F4; /* Mindstate: Light gray */
    color: #3B3B3B; /* Mindstate: Dark gray */
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 0; /* Mindstate: Sharp corners */
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: none; /* Mindstate: No shadow */
    display: inline-block;
    margin-bottom: var(--spacing-sm);
    border: 1px solid #EBEBEB; /* Mindstate: Light border */
    text-transform: uppercase; /* Mindstate: Uppercase for badges */
    letter-spacing: 0.05em; /* Mindstate: Wide letter spacing */
}

/* Progress Bars within Symptom Cards */
/* Mindstate: Simplified progress bars */
#symptomGrid .progress-bar {
    height: 10px;
    background: #EBEBEB; /* Mindstate: Light gray */
    border-radius: 0; /* Mindstate: Sharp corners */
    overflow: hidden;
    box-shadow: none; /* Mindstate: Remove inset shadow */
    position: relative;
    margin-bottom: var(--spacing-xs);
}

#symptomGrid .progress-fill {
    height: 100%;
    border-radius: 0; /* Mindstate: Sharp corners */
    transition: width var(--transition-medium) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Mindstate: Remove glossy highlight */
#symptomGrid .progress-fill::after {
    display: none; /* Mindstate: Remove glossy effect */
}

/* Color variants for progress fill */
/* Mindstate: Solid colors instead of gradients */
#symptomGrid .progress-fill.badge-danger {
    background: #CD853F; /* Mindstate: Data orange for warnings */
    box-shadow: none; /* Mindstate: Remove glow */
}
#symptomGrid .progress-fill.badge-warning {
    background: #BDB76B; /* Mindstate: Data yellow */
    box-shadow: none;
}
#symptomGrid .progress-fill.badge-success {
    background: #6B8E23; /* Mindstate: Data green */
    box-shadow: none;
}

#symptomGrid small {
    display: block;
    color: #8B9187; /* Mindstate: Medium gray */
    font-size: 0.85rem;
    margin-top: auto;
    padding-top: var(--spacing-sm);
    border-top: 1px solid #F4F4F4; /* Mindstate: Light border */
    text-align: center;
    font-weight: 500;
}

/* Enhanced Symptom Modal */
/* Mindstate: Simplified modal content */
#symptomModal .modal-content {
    background: #FFFFFF; /* Mindstate: White background */
    border-radius: 0; /* Mindstate: Sharp corners */
    padding: 0;
    max-width: 650px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Mindstate: Single shadow */
}

/* Mindstate: Clean modal header */
#symptomModal .modal-header {
    background: #FAFAFA; /* Mindstate: Very light gray */
    padding: var(--spacing-lg);
    border-bottom: 2px solid #3B3B3B; /* Mindstate: Dark border */
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

/* Mindstate: Remove decorative shimmer */
#symptomModal .modal-header::after {
    display: none; /* Mindstate: Remove shimmer animation */
}

#symptomModal .modal-header h3 {
    color: #000000; /* Mindstate: Pure black */
    font-weight: 600;
    font-size: 1.15rem;
    margin: 0;
    letter-spacing: -0.02em; /* Mindstate: Tighter letter spacing */
}

#symptomModalContent {
    padding: var(--spacing-lg);
    overflow-y: auto;
    max-height: calc(80vh - 70px);
}

#symptomModalContent h4 {
    font-size: 1.1rem;
    color: #000000; /* Mindstate: Pure black */
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid #8B9187; /* Mindstate: Medium gray border */
    letter-spacing: -0.02em; /* Mindstate: Tighter letter spacing */
}

/* Mindstate: Clean section wrappers */
#symptomModalContent .mt-3 {
    background: #FAFAFA; /* Mindstate: Very light gray */
    padding: var(--spacing-md);
    border-radius: 0; /* Mindstate: Sharp corners */
    margin-bottom: var(--spacing-md);
    box-shadow: none; /* Mindstate: Remove inset shadow */
    border: 1px solid #F4F4F4; /* Mindstate: Light border */
}

#symptomModalContent h5 {
    color: #000000; /* Mindstate: Pure black */
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Progress Bars within Symptom Modal */
/* Mindstate: Clean progress bars */
#symptomModalContent .progress-bar {
    height: 12px;
    background: #EBEBEB; /* Mindstate: Light gray */
    border-radius: 0; /* Mindstate: Sharp corners */
    box-shadow: none; /* Mindstate: Remove inset shadow */
    margin-top: var(--spacing-xs);
}

/* ========================================
   Disorder Group Cards Styling
   ======================================== */
.disorder-groups-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.disorder-group-card {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all var(--transition-fast) ease;
}

.disorder-group-card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.disorder-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    background: #F8F8F8;
    border-bottom: 1px solid #E0E0E0;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
}

.disorder-group-header:hover {
    background: #F4F4F4;
}

.disorder-group-header.active {
    background: #F0F8F0;
    border-bottom-color: #6B8E23;
}

.disorder-group-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex: 1;
}

.disorder-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #000000;
    letter-spacing: -0.02em;
    transition: color var(--transition-fast) ease;
    cursor: pointer;
}

.disorder-name:hover {
    color: #6B8E23;
    text-decoration: underline;
}

.id-group-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #000000;
    letter-spacing: -0.02em;
}

.symptom-count {
    font-size: 0.85rem;
    font-weight: 400;
    color: #666666;
    background: #EBEBEB;
    padding: 2px 10px;
    border-radius: 12px;
}

/* Secret feature: Subtle indication for clickable symptom count when grouped by ID */
.symptom-count-secret {
    cursor: pointer;
    transition: all 0.2s ease;
}

.symptom-count-secret:hover {
    background: #DCDCDC;
    transform: translateY(-1px);
}

/* ID badge styling for unified symptom descriptors */
.id-badge {
    display: inline-block;
    background: #e0e0e0;
    color: #666;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.id-group-name {
    font-weight: 600;
    color: #333;
}

/* Ensure badges stay on one line */
.disorder-group-title {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4px;
}

.disorder-group-title .symptom-count-secret {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Force symptom title to new line */
.disorder-group-title .id-group-name {
    flex-basis: 100%;
}

.disorder-group-header .chevron-icon {
    font-size: 0.9rem;
    color: #666666;
    transition: transform var(--transition-fast) ease;
}

.disorder-group-content {
    padding: var(--spacing-lg);
    background: #FAFAFA;
    border-top: 1px solid #F0F0F0;
}

/* Adjust symptom cards within disorder groups */
.disorder-group-content .symptom-analysis-card {
    background: #FFFFFF;
    border: 1px solid #E8E8E8;
}

.disorder-group-content .symptoms-masonry-container {
    margin-top: 0;
}

/* Effect Items within Symptom Modal */
/* Mindstate: Simplified effect items */
#symptomModalContent .effect-item {
    margin-bottom: var(--spacing-sm);
    background: #FFFFFF; /* Mindstate: White background */
    border-radius: 0; /* Mindstate: Sharp corners */
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* Mindstate: Minimal shadow */
    transition: all var(--transition-fast) ease;
    border: 1px solid #F4F4F4; /* Mindstate: Light border */
}

#symptomModalContent .effect-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); /* Mindstate: Subtle shadow */
}

/* Mindstate: Clean effect header */
#symptomModalContent .effect-item-header {
    cursor: pointer;
    padding: var(--spacing-sm) var(--spacing-md);
    background: #FAFAFA; /* Mindstate: Very light gray */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-fast) ease;
    position: relative;
    overflow: hidden;
}

/* Mindstate: Remove shimmer effect */
#symptomModalContent .effect-item-header::before {
    display: none; /* Mindstate: Remove shimmer */
}

#symptomModalContent .effect-item-header:hover {
    background: #F0F8F0; /* Mindstate: Very light green tint */
}

#symptomModalContent .effect-item-header:active {
    transform: scale(0.98);
    box-shadow: none; /* Mindstate: No inset shadow */
}

#symptomModalContent .effect-item-header .effect-name {
    font-weight: 500;
    color: #000000; /* Mindstate: Pure black */
    font-size: 0.9rem;
    flex: 1;
    padding-right: var(--spacing-sm);
}

/* Mindstate: Simplified expand indicator */
#symptomModalContent .effect-item-header .expand-indicator {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    color: #6B8E23; /* Mindstate: Data green */
    font-weight: 600;
    transition: transform var(--transition-fast) ease;
    background: #F4F4F4; /* Mindstate: Light gray */
    width: 26px;
    height: 26px;
    border-radius: 50%; /* Keep circular */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none; /* Mindstate: No shadow */
    border: 1px solid #EBEBEB; /* Mindstate: Light border */
}

/* Mindstate: Clean rationale section */
#symptomModalContent .effect-rationale {
    display: none;
    padding: var(--spacing-md);
    background: #FAFAFA; /* Mindstate: Very light gray */
    border-top: 1px solid #EBEBEB; /* Mindstate: Light border */
    animation: none;
}

#symptomModalContent .effect-rationale.active {
    display: block;
    animation: expandDown 0.3s ease;
}

#symptomModalContent .effect-rationale p {
    margin-bottom: var(--spacing-sm);
    color: #3B3B3B; /* Mindstate: Dark gray */
    line-height: 1.5;
    font-size: 0.85rem;
}

/* Mindstate: Clean badges in rationale */
#symptomModalContent .effect-rationale .badge {
    margin-right: var(--spacing-xs);
    font-size: 0.8rem;
    padding: 2px var(--spacing-xs);
    background: #F4F4F4; /* Mindstate: Light gray */
    box-shadow: none; /* Mindstate: No shadow */
    border-radius: 0; /* Mindstate: Sharp corners */
    font-weight: 500;
    color: #3B3B3B; /* Mindstate: Dark gray */
    border: 1px solid #EBEBEB; /* Mindstate: Light border */
}

/* Mindstate: Badge variants with solid colors */
#symptomModalContent .effect-rationale .badge-primary {
    background: #6B8E23; /* Mindstate: Data green */
    color: #FFFFFF;
    border-color: #6B8E23;
}
#symptomModalContent .effect-rationale .badge-warning {
    background: #BDB76B; /* Mindstate: Data yellow */
    color: #000000;
    border-color: #BDB76B;
}
#symptomModalContent .effect-rationale .badge-success {
    background: #4682B4; /* Mindstate: Data blue */
    color: #FFFFFF;
    border-color: #4682B4;
}

/* Custom Scrollbar for Symptom Modal Content */
/* Mindstate: Simplified scrollbar */
#symptomModalContent::-webkit-scrollbar {
    width: 10px;
}
#symptomModalContent::-webkit-scrollbar-track {
    background: #F4F4F4; /* Mindstate: Light gray */
    border-radius: 0; /* Mindstate: Sharp corners */
    margin: var(--spacing-sm) 0;
}
#symptomModalContent::-webkit-scrollbar-thumb {
    background: #8B9187; /* Mindstate: Medium gray */
    border-radius: 0; /* Mindstate: Sharp corners */
    border: none; /* Mindstate: Remove border */
}
#symptomModalContent::-webkit-scrollbar-thumb:hover {
    background: #3B3B3B; /* Mindstate: Dark gray on hover */
}

/* Symptom Title Links */
.symptom-title-link {
    cursor: pointer;
    transition: color var(--transition-fast) ease;
}

.symptom-title-link:hover {
    color: #6B8E23;
    text-decoration: underline;
}

/* Symptom Details View (Dedicated Page) - Mirrors Effect Details View */
#symptom-details-view .symptom-details-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

/* Back to Symptoms Button - Shared styling with effects */
.back-to-symptoms-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 8px 16px;
    background: #FFFFFF;
    border: 1px solid #EBEBEB;
    border-radius: 0;
    color: #3B3B3B;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.back-to-symptoms-btn:hover {
    background: #F4F4F4;
    border-color: #8B9187;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.back-to-symptoms-btn i {
    color: #6B8E23;
}

/* Symptom Detail Page Specific Styles */
.symptom-detail-header {
    margin-bottom: var(--spacing-xl);
}

.symptom-detail-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.04em;
}

.synonym-variations {
    margin-bottom: var(--spacing-md);
}

.synonym-label {
    font-size: 0.95rem;
    color: #8B9187;
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
}

.synonym-list {
    list-style-type: disc;
    margin-left: var(--spacing-lg);
    color: #3B3B3B;
    font-size: 0.9rem;
    line-height: 1.6;
}

.synonym-list li {
    margin-bottom: var(--spacing-xs);
}

.symptom-detail-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

/* Reuse metric card styles from effects */
#symptom-details-view .metric-card {
    background: #FFFFFF;
    border-radius: 0;
    padding: var(--spacing-md);
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #F4F4F4;
}

#symptom-details-view .metric-icon {
    font-size: 1.5rem;
    color: #6B8E23;
    margin-bottom: var(--spacing-sm);
}

#symptom-details-view .metric-value {
    font-size: 1.5rem;
    font-weight: 300;
    color: #000000;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: var(--spacing-xs) 0;
    letter-spacing: -0.04em;
}

#symptom-details-view .metric-label {
    font-size: 0.8rem;
    color: #8B9187;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Disorders List in Symptom Details */
#symptom-details-view .disorders-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

#symptom-details-view .disorder-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background: #FAFAFA;
    border-radius: 0;
    border: 1px solid #F4F4F4;
    transition: all var(--transition-fast) ease;
}

#symptom-details-view .disorder-item:hover {
    background: #F4F4F4;
    transform: translateX(2px);
}

#symptom-details-view .disorder-name-link {
    font-weight: 600;
    color: #000000;
    cursor: pointer;
    transition: color var(--transition-fast) ease;
}

#symptom-details-view .disorder-name-link:hover {
    color: #6B8E23;
    text-decoration: underline;
}

#symptom-details-view .disorder-chapter {
    font-size: 0.85rem;
    color: #8B9187;
}

/* Effects List in Symptom Details */
#symptom-details-view .effects-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

#symptom-details-view .effect-card {
    background: #FFFFFF;
    border-radius: 0;
    padding: var(--spacing-md);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #F4F4F4;
    transition: all var(--transition-fast) ease;
}

#symptom-details-view .effect-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

#symptom-details-view .effect-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

#symptom-details-view .effect-name-link {
    font-weight: 600;
    color: #000000;
    cursor: pointer;
    transition: color var(--transition-fast) ease;
}

#symptom-details-view .effect-name-link:hover {
    color: #6B8E23;
    text-decoration: underline;
}

#symptom-details-view .effect-rationale-section {
    display: block !important; /* Ensure section is visible */
    background: #FAFAFA;
    padding: 0;
    border-radius: 0;
    border: 1px solid #F4F4F4;
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

#symptom-details-view .rationale-header {
    cursor: pointer;
    padding: var(--spacing-md);
    background: #FAFAFA;
    transition: all 0.2s ease;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#symptom-details-view .rationale-header:hover {
    background: #F0F1F0;
}

#symptom-details-view .rationale-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    position: relative;
    padding-bottom: 8px;
}

#symptom-details-view .rationale-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #6B8E23;
}

#symptom-details-view .rationale-toggle-icon {
    width: 20px;
    height: 20px;
    color: #6B8E23;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

#symptom-details-view .rationale-content {
    padding: var(--spacing-md);
    background: #FAFAFA;
    border-top: 1px solid #EBEBEB;
}

#symptom-details-view .effect-rationale {
    display: block !important; /* Ensure rationales are always visible on dedicated page */
    font-size: 0.9rem;
    color: #3B3B3B;
    line-height: 1.6;
    margin: 0;
}

#symptom-details-view .rationales-list {
    display: flex !important; /* Ensure list container is visible */
    flex-direction: column;
    gap: var(--spacing-md);
}

#symptom-details-view .rationale-item {
    display: block !important; /* Ensure individual items are visible */
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid #EBEBEB;
}

#symptom-details-view .rationale-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

#symptom-details-view .rationale-symptom-context {
    display: block !important; /* Ensure context labels are visible */
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
    font-style: italic;
}

#symptom-details-view .effect-stats {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

#symptom-details-view .effect-disorders {
    font-size: 0.85rem;
    color: #8B9187;
}