/* Main CSS - Prosper.app */
/* Import the theme first */
@import url('theme.css');

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-main);
    min-height: 100vh;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navigation */
.navbar {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-primary);
    padding: var(--space-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-subtle);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-brand h1 {
    color: var(--accent-primary);
    font-size: 1.5rem;
    font-weight: 700;
    transition: color 0.3s ease;
    margin: 0;               /* align with logo horizontally */
    line-height: 1;          /* better vertical centering next to image */
}

.nav-brand-link:hover h1 {
    color: var(--accent-secondary);
}

.nav-brand i {
    margin-right: var(--space-xs);
    color: var(--accent-secondary);
}

.nav-logo {
    height: 32px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.theme-toggle-btn {
    background: transparent;
    border: 2px solid var(--border-primary);
    color: var(--accent-primary);
    border-radius: var(--radius-sm);
    padding: var(--space-xs) var(--space-sm);
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    background: var(--accent-primary);
    color: white;
}

.nav-btn {
    background: transparent;
    border: 2px solid var(--border-primary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    color: var(--accent-primary);
}

.nav-btn:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-subtle);
}

/* User Dropdown */
.user-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background: transparent;
    border: 2px solid var(--border-primary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    color: var(--accent-primary);
}

.user-menu-btn:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-subtle);
}

.user-avatar {
    width: 24px;
    height: 24px;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.user-name {
    font-weight: 500;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.user-menu-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-medium);
    min-width: 280px;
    z-index: 1000;
    margin-top: var(--space-xs);
    overflow: hidden;
}

.user-info {
    padding: var(--space-md);
    background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-secondary) 100%);
}

.user-details {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.user-text h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-text p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.user-plan {
    display: flex;
    justify-content: center;
}

.upgrade-link {
    margin-left: var(--space-xs);
    font-size: 0.82rem; /* ~0.5px smaller than previous */
    color: var(--accent-primary);
    text-decoration: underline;
    cursor: pointer;
}

.upgrade-link:visited,
.upgrade-link:hover,
.upgrade-link:active {
    color: var(--accent-secondary);
}

.upgrade-link.hidden {
    display: none;
}

.plan-badge {
    background: var(--accent-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.plan-badge.free-plan {
    background: #6c757d;
}

.plan-badge.premium-plan {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-primary);
    margin: 6px 0; /* add vertical breathing room between groups */
}

.dropdown-menu-items {
    padding: 8px 0; /* increase inner spacing */
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px; /* larger hit area and spacing */
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
}

/* add vertical spacing between adjacent items */
.user-dropdown-menu .dropdown-menu-items .dropdown-item + .dropdown-item {
    margin-top: 4px;
}

.dropdown-item:hover {
    background: var(--background-hover);
    color: var(--accent-primary);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
}

.logout-item {
    color: var(--accent-secondary);
}

.logout-item:hover {
    background: #f8d7da;
    color: var(--accent-secondary);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 2px solid var(--border-primary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    color: var(--accent-primary);
}

.mobile-menu-btn:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* Settings Modal */
.settings-sections {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.settings-section {
    background: var(--bg-main);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    border: 1px solid var(--border-primary);
}

.settings-section h4 {
    margin: 0 0 var(--space-md) 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.settings-section h4 i {
    color: var(--accent-primary);
}

.preference-item {
    margin-bottom: var(--space-md);
    padding: var(--space-sm);
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-primary);
}

.preference-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.preference-label input[type="checkbox"] {
    margin: 0;
}

.preference-description {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-left: 28px;
}

.preference-item select,
.preference-item .form-select {
    width: 100%;
    max-width: 300px;
    padding: var(--space-xs) var(--space-sm);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-sm);
    background-color: white;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: var(--space-xs);
}

.preference-item select:focus,
.preference-item .form-select:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 3px rgba(186, 103, 59, 0.1);
}

.preference-item select:hover,
.preference-item .form-select:hover {
    border-color: var(--accent-primary);
}

/* Profile Page */
.profile-content {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-subtle);
    padding: var(--space-lg);
}

/* Referral Page */
.referral-content {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-subtle);
    padding: var(--space-lg);
}

.referral-share-hint {
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
    line-height: 1.4;
}

.referral-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.stat-card {
    background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-secondary) 100%);
    border-radius: var(--radius-sm);
    padding: var(--space-sm);
    border: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-align: left;
}

.stat-icon {
    font-size: 1.2rem;
    color: var(--accent-primary);
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.referral-link-section {
    margin-bottom: var(--space-lg);
}

.referral-link-section h3 {
    font-size: 1.2rem; /* slightly larger for readability */
}

.input-group {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.input-group input {
    flex: 1;
    font-size: 18px; /* make referral URL 2px bigger */
}

/* Referral URL input specifically 1px smaller than the general input size */
#referral-modal-link {
    font-size: 17px;
}

.referral-share-section h3 {
    margin-bottom: var(--space-md);
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: var(--space-sm);
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-social i {
    font-size: 0.9em;
}

.btn-social.facebook {
    background: #1877f2;
    color: white;
}

.btn-social.twitter {
    background: #000000; /* X (formerly Twitter) */
    color: white;
}

/* Explicit style if we later change class name to .x */
.btn-social.x {
    background: #000000;
    color: white;
}

.btn-social.linkedin {
    background: #0077b5;
    color: white;
}

.btn-social.whatsapp {
    background: #25d366;
    color: white;
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .user-name {
        display: none;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .user-dropdown-menu {
        min-width: 250px;
        right: -10px;
    }
    
    .referral-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        grid-template-columns: 1fr 1fr;
    }
    
    .input-group {
        flex-direction: column;
    }
}

/* Main Content */
#main-content {
    min-height: calc(100vh - 80px);
}

/* Footer */
.app-footer {
    border-top: 1px solid var(--border-primary);
    background: var(--bg-card);
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
}

.footer-right a {
    margin-left: var(--space-sm);
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-right a:hover {
    text-decoration: underline;
}

/* Page Layout */
.page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

/* Auth Container */
.auth-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-secondary);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.auth-header h2 {
    color: var(--text-secondary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.auth-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.auth-header i {
    color: var(--accent-primary);
    margin-right: var(--space-xs);
}

/* Forms */
.auth-form {
    margin-bottom: var(--space-md);
}

/* Registration: centered primary action (~33% width) */
#register-step1-next {
    width: 33%;
    min-width: 200px;
    max-width: 100%;
    display: block;
    margin: 0.75rem auto 0;
}

/* Inline validation (login / register) */
.field-error {
    border-color: var(--danger-color, #e74c3c) !important;
}

.field-error-message {
    color: var(--danger-color, #e74c3c);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: var(--space-xs) var(--space-sm);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-sm);
    background-color: white;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 3px rgba(186, 103, 59, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    min-height: 44px;
    justify-content: center;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    box-shadow: var(--shadow-subtle);
}

.btn-primary:hover {
    background: var(--accent-secondary);
    box-shadow: var(--shadow-card);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn-secondary:hover {
    background: var(--accent-primary);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: white;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Login action row: sign-in button centered, forgot link right-aligned */
.login-action-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    flex-wrap: wrap;
}

.login-action-row .btn-signin {
    font-size: 1.05rem;
    padding: 0.75rem 2.5rem;
}

.forgot-password-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 400;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.forgot-password-link:hover {
    color: var(--accent-secondary);
}

/* Auth Links */
.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-links.login-signup-link {
    margin-top: 2.5rem;
}

.auth-links.login-signup-link a {
    font-weight: 400;
}

.auth-links a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: var(--accent-secondary);
}

.auth-links a:not(:last-child) {
    margin-right: 1rem;
}

/* Loading Overlay */
#reports-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.loading-overlay-content {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 2.5rem 3rem;
    text-align: center;
    box-shadow: var(--shadow-hover);
}

.loading-overlay-content .reports-loading-spinner {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.loading-overlay-content p {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin: 0;
}

/* Dashboard */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
}

.dashboard-header {
    margin-bottom: var(--space-xl);
    text-align: center;
    position: relative; /* ensure normal flow, prevent overlap */
    z-index: 0;
}

.dashboard-header h2 {
    color: var(--text-secondary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.dashboard-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Dashboard Blocks */
.dashboard-blocks {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    clear: both; /* guard against any floated elements above */
    margin-top: var(--space-md);
}

.dashboard-block {
    display: flex;
    align-items: center;
    padding: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.dashboard-block:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-primary);
}

.block-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--space-lg);
    flex-shrink: 0;
}

.block-icon i {
    font-size: 1.5rem;
    color: white;
}

.block-content {
    flex: 1;
}

.block-content h3 {
    color: var(--text-secondary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.block-content p {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
}

.block-arrow {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.dashboard-block:hover .block-arrow {
    transform: translateX(4px);
}

/* Section Container */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-md);
    position: relative;
}

.section-header h2 {
    color: var(--text-secondary);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.section-header i {
    color: var(--accent-primary);
}

/* Back Arrow Button */
.back-arrow-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-secondary);
    background: var(--bg-card);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.back-arrow-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateX(-2px);
}

/* Reports Container - Basic styling only */
.reports-container {
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
}

/* Reports Header */
.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-secondary);
    position: relative;
}

.reports-header h2 {
    color: var(--text-secondary);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-spacer {
    width: 40px; /* Same width as back button to center the title */
}

/* Create Report Button */
.create-report-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-subtle);
}

.create-report-btn:hover {
    background: var(--accent-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.create-report-btn i {
    font-size: 1.2rem;
}

/* Self-Analysis Section */
.self-analysis-section {
    margin-bottom: var(--space-xl);
}

.self-analysis-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-lg);
    align-items: center;
    padding: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-secondary);
    margin-bottom: var(--space-lg);
}

.self-analysis-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.self-analysis-icon i {
    font-size: 1.2rem;
    color: white;
}

.self-analysis-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.content-header h3 {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.content-description p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0;
}

.content-date {
    display: flex;
    align-items: center;
}

.report-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.status-check {
    color: #4CAF50;
    font-size: 0.9rem;
}

.self-analysis-actions {
    display: flex;
    align-items: center;
    justify-content: center;
}

.self-analysis-actions .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Other Reports Section */
.other-reports-section {
    margin-top: var(--space-xl);
    width: 100%;
}

.other-reports-section h3 {
    color: var(--text-secondary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.other-reports-section h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 2px;
}

/* Report Blocks */
.reports-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.report-block {
    display: flex;
    align-items: center;
    padding: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.report-block:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-primary);
}

.report-block-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--space-lg);
    flex-shrink: 0;
}

.report-block-icon i {
    font-size: 1.2rem;
    color: white;
}

.report-block-content {
    flex: 1;
}

.report-block-content h3 {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.report-block-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
}

.report-block-meta {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.report-type,
.report-language,
.report-date {
    background: var(--bg-main);
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.report-type {
    background: var(--accent-primary);
    color: white;
}

/* Disabled Button */
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Report Blocks */
.reports-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    min-height: 200px;
    padding: var(--space-md) 0;
    width: 100%;
}

.report-block {
    display: flex;
    align-items: center;
    padding: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.report-block:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-primary);
}

.report-block-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--space-lg);
    flex-shrink: 0;
}

.report-block-icon i {
    font-size: 1.5rem;
    color: white;
}

.report-block-content {
    flex: 1;
}

.report-block-content h3 {
    color: var(--text-secondary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.report-block-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.report-block-meta {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.report-type,
.report-language,
.report-date {
    background: var(--bg-main);
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.report-type {
    background: var(--accent-primary);
    color: white;
}

.report-block-actions {
    flex-shrink: 0;
    margin-left: var(--space-md);
}

.report-block-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Self-Analysis Report Special Styling */
.report-block.self-analysis-report {
    border-left: 4px solid var(--accent-primary);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(74, 144, 226, 0.05) 100%);
}

.report-block.self-analysis-report .report-block-icon {
    background: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.report-block.self-analysis-report .report-block-content h3 {
    color: var(--accent-primary);
}

.reports-section,
.dashboard-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-secondary);
    min-height: 400px; /* Ensure consistent minimum height */
    display: none; /* Hidden by default */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.preview-card {
    background: var(--bg-main);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    border: 1px solid var(--border-secondary);
    text-align: center;
}

.preview-card h4 {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
}

.preview-card p {
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.section-header h3 {
    color: var(--text-secondary);
    font-size: 1.5rem;
    font-weight: 600;
}

.section-header i {
    color: var(--accent-primary);
    margin-right: var(--space-xs);
}

/* Reports Grid */
.reports-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

/* Report Category Section */
.report-category-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.category-header {
    color: var(--text-secondary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    margin-bottom: 0;
    padding-top: 10px;
    padding-bottom: 0;
    border-bottom: 2px solid var(--border-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.category-count {
    color: var(--accent-primary);
    font-size: 1.2rem;
    font-weight: 500;
}

.category-reports {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.report-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    border: 1px solid var(--border-secondary);
    transition: var(--transition);
    box-shadow: var(--shadow-subtle);
}

.report-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
    border-color: var(--accent-primary);
}

.report-header {
    margin-bottom: 1rem;
}

.report-header h4 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.report-meta {
    display: flex;
    gap: 0.5rem;
}

.report-type,
.report-language {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.report-language {
    background: #6c757d;
}

.report-content {
    margin-bottom: 1rem;
}

.report-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.report-actions {
    display: flex;
    gap: 0.5rem;
}

.report-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.empty-icon {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 2rem;
}




.tab-nav {
    display: flex;
    gap: 0;
    padding: 0;
    margin: 0;
}

.tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-lg) var(--space-md);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.tab-btn.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
    background: white;
}

.tab-btn i {
    font-size: calc(1.2rem + 2px); /* Increased by 2px for Personality Analysis reports */
    margin-bottom: var(--space-xs);
}

.tab-btn span {
    font-size: calc(0.85rem + 1px); /* Increased by 1px for Personality Analysis reports */
    white-space: nowrap;
}

.tab-content {
    position: relative;
    min-height: 400px;
    background: white;
    display: block !important; /* Force display */
}

.tab-pane {
    display: none !important;
    padding: var(--space-xl);
    animation: fadeIn 0.3s ease-in-out;
    min-height: 400px;
    background: white;
    width: 100%;
    position: relative;
    overflow: visible;
}

.tab-pane.active {
    display: block !important;
}

/* Ensure content is visible */
.tab-pane .single-section {
    width: 100%;
}


/* Section Analysis */
.section-analysis {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
    border-left: 4px solid var(--accent-primary);
    box-shadow: var(--shadow-subtle);
}

.section-analysis p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

/* Subsection Intro */
.subsection-intro {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-secondary);
}

.strengths-weaknesses {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
    visibility: visible !important;
}

/* Single column layout when only one section exists */
.strengths-weaknesses:has(.full-width),
.strengths-weaknesses:has(.strengths-section:only-child),
.strengths-weaknesses:has(.weaknesses-section:only-child) {
    grid-template-columns: 1fr;
}

/* Fallback for browsers that don't support :has() */
.strengths-weaknesses.single-column {
    grid-template-columns: 1fr !important;
}

.strengths-section, .weaknesses-section {
    background: #e9ecef;
    padding: 15px;
    border-radius: 6px;
    border: 2px solid #28a745;
    min-height: 100px;
    display: block !important;
}

.weaknesses-section.full-width {
    grid-column: 1 / -1;
}

/* When only weaknesses exist, make it full width */
.strengths-weaknesses:has(.weaknesses-section:only-child) .weaknesses-section {
    grid-column: 1 / -1;
}

.strengths-section {
    border-color: #28a745;
}

.weaknesses-section {
    border-color: #dc3545;
}

.strengths-section h4, .weaknesses-section h4 {
    margin: 0 0 var(--space-sm) 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.strength-item, .weakness-item {
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 4px;
    border-left: 4px solid #007bff;
}

.weakness-item {
    border-left-color: #dc3545;
}

.strength-title, .weakness-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.strength-description, .weakness-description {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.weakness-suggestion {
    margin-top: 8px;
    padding: 8px;
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    border-radius: 4px;
    font-style: italic;
    color: #856404;
    font-size: 13px;
}

/* New report fields styling */
.actionable-insight,
.utilization {
    margin-top: 8px;
    padding: 8px;
    background: #d4edda;
    border-left: 3px solid #28a745;
    border-radius: 4px;
    color: #155724;
    font-size: 13px;
}

.actionable-insight strong,
.utilization strong {
    color: #155724;
}

.avoid-note,
.what-to-avoid {
    margin-top: 8px;
    padding: 8px;
    background: #f8d7da;
    border-left: 3px solid #dc3545;
    border-radius: 4px;
    color: #721c24;
    font-size: 13px;
}

.avoid-note strong,
.what-to-avoid strong {
    color: #721c24;
}

.what-to-say,
.tactic,
.mental-shift {
    margin-top: 8px;
    padding: 8px;
    background: #d1ecf1;
    border-left: 3px solid #17a2b8;
    border-radius: 4px;
    color: #0c5460;
    font-size: 13px;
}

.what-to-say strong,
.tactic strong,
.mental-shift strong {
    color: #0c5460;
}

.date-idea,
.gift-idea {
    margin-top: 8px;
    padding: 8px;
    background: #f3e5f5;
    border-left: 3px solid #9c27b0;
    border-radius: 4px;
    color: #4a148c;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.date-idea i,
.gift-idea i {
    color: #9c27b0;
    margin-top: 2px;
}

.date-idea strong,
.gift-idea strong {
    color: #4a148c;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Single Section Layout */
.single-section {
    max-width: 100%;
    position: relative;
    z-index: 1;
}

.single-section .section-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
    border: 1px solid var(--border-secondary);
    position: relative;
    z-index: 1;
}

.single-section .section-header h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 var(--space-sm) 0;
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    clear: both;
}

.single-section .section-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    clear: both;
}

.single-section .section-content {
    padding: 0;
    margin-top: var(--space-lg);
    position: relative;
    z-index: 1;
}

.no-content {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-muted);
    font-style: italic;
}

.simple-section {
    padding: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-secondary);
}

.simple-section h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.simple-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.section-info {
    background: var(--bg-secondary);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-primary);
}

/* Report Sections */
.report-section {
    margin-bottom: 0;
    border: none;
    border-radius: 0;
    overflow: hidden;
    border-bottom: 2px solid #e9ecef;
    background: white;
}

.report-section:last-child {
    border-bottom: none;
}

.section-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-bottom: 1px solid #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.section-header:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section-header:hover::before {
    opacity: 1;
}

.section-header.clickable::after {
    content: '▼';
    font-size: 1.2rem;
    color: #666;
    transition: transform 0.3s ease;
}

.section-header.expanded::after {
    transform: rotate(180deg);
}

.section-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-number {
    background: var(--accent-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.section-description {
    color: #666;
    font-size: 1.1rem;
    margin: 0.5rem 0 0 0;
    font-weight: 400;
}

.section-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: white;
}

.section-content.expanded {
    max-height: 5000px;
    padding: 2rem;
}



/* Report Summary */
.report-summary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    text-align: center;
    position: relative;
}

.report-summary h3 {
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.report-summary p {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Tier Badge */
.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.tier-badge.free {
    background: rgba(40, 167, 69, 0.9);
    color: white;
}

.tier-badge.premium {
    background: rgba(255, 193, 7, 0.9);
    color: #333;
}

.tier-badge.vip {
    background: rgba(220, 53, 69, 0.9);
    color: white;
}

.tier-badge.admin {
    background: rgba(111, 66, 193, 0.9);
    color: white;
}

.tier-badge i {
    font-size: 1.1rem;
}

/* Responsive Design for Report */
@media (max-width: 768px) {
    .report-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .report-title-section {
        min-width: auto;
    }
    
    .nav-sections {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-section-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .strengths-weaknesses {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-header {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-content.expanded {
        padding: 1.5rem;
    }
    
}

@media (max-width: 480px) {
    .report-container {
        padding: 1rem 10px;
    }
    
    .section-header {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .section-content.expanded {
        padding: 1rem;
    }
    
    
    .strengths-section,
    .weaknesses-section {
        padding: 1rem;
    }
}

/* Plan Badge */
.plan-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-free {
    background: #28a745;
    color: white;
}

.plan-paid {
    background: #ffc107;
    color: #333;
}

/* Referral Welcome Page */
.referral-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--accent-primary);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: var(--space-sm);
}

.verification-icon {
    font-size: 4rem;
    color: var(--accent-primary);
    margin-bottom: var(--space-md);
}

.verification-content {
    text-align: center;
}

.verification-steps {
    margin: var(--space-lg) 0;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-lg);
    text-align: left;
}

.step-number {
    background: var(--accent-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: var(--space-md);
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
    font-size: 1.1rem;
}

.step-content p {
    color: var(--text-muted);
    margin: 0;
}

.verification-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    margin: var(--space-lg) 0;
    flex-wrap: wrap;
}

.verification-help {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-secondary);
}

.verification-help i {
    color: var(--accent-primary);
    margin-right: var(--space-xs);
}

/* Error and Success Messages */
.error-message,
.success-message {
    margin: var(--space-md) 0;
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.error-message i {
    color: var(--accent-secondary);
}

.success-message i {
    color: var(--accent-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
    }
    
    .report-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .report-actions {
        justify-content: center;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .dashboard-container {
        padding: 1rem 10px;
    }
    
    .reports-section {
        padding: 1.5rem;
    }
    
    .verification-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .verification-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
    
    .dashboard-header h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
    }
    
}

/* Reports page layout: prevent horizontal scroll */
#reports-page {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
}

#reports-page .reports-container {
    max-width: 1200px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

#reports-page .other-reports-section,
#reports-page .reports-grid,
#reports-page .report-block {
    width: 100% !important;
    max-width: 100% !important;
}
