/* 
 * Prashn Shastra - Spiritual Light Theme
 * A bright, warm, spiritual design reflecting happiness and positivity
 */

:root {
    /* ==================== WHITE MINIMALISTIC THEME (Default) ==================== */

    /* Spiritual Palette */
    --saffron: #FF9933;
    --deep-saffron: #E67300;
    --golden: #DAA520;
    --bright-gold: #FFD700;
    --sacred-maroon: #800020;

    /* Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;

    --primary-color: #FF9933;
    --primary-light: #FFB366;
    --accent-gold: #DAA520;
    --accent-pink: #D35400;

    --card-bg: #FFFFFF;
    --card-border: rgba(226, 232, 240, 1);

    --shadow-soft: rgba(0, 0, 0, 0.06);
    --shadow-medium: rgba(0, 0, 0, 0.12);

    /* Gradients */
    --bg-gradient: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 50%, #FFF8F0 100%);
    --primary-gradient: linear-gradient(135deg, #FF9933 0%, #E07B1A 100%);
    --gold-gradient: linear-gradient(135deg, #FF9933 0%, #E07B1A 50%, #DAA520 100%);

    /* Specific overrides for White */
    --header-bg: rgba(255, 255, 255, 0.95);
    --input-bg: #FFFFFF;
    --soft-orange: rgba(255, 153, 51, 0.08);
    --text-dark: #0F172A;
    --text-light: #94A3B8;
    --text-medium: #475569;
}

/* ── Cosmic / Dark Theme Override ── */
[data-theme="cosmic"] {
    --bg-primary: #0F0F23;
    --bg-secondary: #1a1a3e;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-dark: #ffffff;
    --text-light: rgba(255, 255, 255, 0.4);
    --text-medium: rgba(255, 255, 255, 0.6);

    --primary-color: #6366F1;
    --primary-light: #818CF8;
    --accent-gold: #F59E0B;
    --accent-pink: #EC4899;

    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);

    --shadow-soft: rgba(99, 102, 241, 0.15);
    --shadow-medium: rgba(99, 102, 241, 0.25);

    --bg-gradient: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gold-gradient: linear-gradient(135deg, #fff 0%, #c4b5fd 100%);

    --header-bg: rgba(15, 15, 35, 0.8);
    --input-bg: rgba(255, 255, 255, 0.05);
    --soft-orange: rgba(99, 102, 241, 0.1);

    --saffron: #818CF8;
    --deep-saffron: #6366F1;
    --golden: #F59E0B;
}

/* ── Spiritual / Saffron Theme Override ── */
[data-theme="light"] {
    --saffron: #FF9933;
    --deep-saffron: #E67300;
    --golden: #DAA520;
    --bright-gold: #FFD700;
    --sacred-maroon: #800020;

    --bg-primary: #FFF8E7;
    --bg-secondary: #FFF5EB;
    --text-primary: #3D2300;
    --text-secondary: #5C3A1A;
    --text-muted: #8B5A2B;
    --text-dark: #3D2300;
    --text-light: #8B5A2B;
    --text-medium: #5C3A1A;

    --primary-color: #FF9933;
    --primary-light: #FFB366;
    --accent-gold: #DAA520;
    --accent-pink: #D35400;

    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(218, 165, 32, 0.3);

    --shadow-soft: rgba(255, 153, 51, 0.15);
    --shadow-medium: rgba(218, 165, 32, 0.25);

    --bg-gradient: linear-gradient(135deg, #FFF8E7 0%, #FFF5EB 50%, #FFFAF0 100%);
    --primary-gradient: linear-gradient(135deg, #FF9933 0%, #E67300 100%);
    --gold-gradient: linear-gradient(45deg, #DAA520, #FFD700, #DAA520);

    --header-bg: rgba(255, 248, 231, 0.95);
    --input-bg: white;
    --soft-orange: rgba(255, 153, 51, 0.08);
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    /* Prevents zoom issues on mobile */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    background: var(--bg-gradient);
    background-color: var(--bg-primary);
    /* Fallback */
    color: var(--text-primary);
    font-family: 'Lato', 'Segoe UI', sans-serif;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.5s ease, color 0.5s ease;
}

/* Cosmic Background Elements (Visible only in Cosmic/Dark theme) */
.cosmic-bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

[data-theme="cosmic"] .cosmic-bg-layer {
    opacity: 1;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 230px 80px, rgba(255, 255, 255, 0.4), transparent);
    background-size: 550px 300px;
    animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}

/* Decorative Background */
/* Spiritual background (Visible only in Light/Saffron theme) */
.spiritual-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 153, 51, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(218, 165, 32, 0.06) 0%, transparent 40%),
        var(--bg-gradient);
    background-attachment: fixed;
    opacity: 1;
    transition: opacity 0.5s;
}

[data-theme="cosmic"] .spiritual-bg {
    opacity: 0;
}

[data-theme="cosmic"] .cosmic-bg-layer {
    opacity: 1;
}

/* Hide old dark star elements — shown only in cosmic theme */
.stars,
.twinkling {
    display: none !important;
}

[data-theme="cosmic"] .cosmic-bg-layer .stars {
    display: block !important;
}

/* Container - Responsive */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    min-height: 100vh;
}

/* ==================== HEADER ==================== */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-color);
    padding: 0.5rem 1rem;
    transition: background 0.5s, border-color 0.5s;
}

.header-top-row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
    flex-wrap: wrap;
}

.user-actions-left {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: var(--card-bg);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--card-border);
    box-shadow: 0 2px 10px var(--shadow-soft);
}

.user-actions-left .icon-btn {
    background: var(--input-bg);
    color: var(--text-primary) !important;
    border: none;
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.user-actions-left .icon-btn:hover {
    background: var(--accent-gold);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.dashboard-header-btn {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#userName {
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

[data-theme="cosmic"] #userName {
    color: white;
}

.header-lang-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: var(--input-bg);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 2px solid var(--saffron);
}

.lang-group {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.lang-group label {
    font-size: 0.7rem;
    color: var(--deep-saffron);
    font-weight: 600;
    text-transform: uppercase;
}

.small-select {
    background: var(--input-bg);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    cursor: pointer;
}

.small-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ==================== MAIN CONTENT ==================== */
.main-content-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 60px;
    /* Reduced from 80px */
    width: 100%;
    margin-bottom: 0;
    min-height: auto;
    /* Remove forced height to snap results to top */
}

/* OM Symbol */
.om-header {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(255, 153, 51, 0.3));
    animation: gentle-float 4s ease-in-out infinite;
}

@keyframes gentle-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-size: 2.5rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(218, 165, 32, 0.2);
    letter-spacing: 3px;
}

/* ==================== INPUT AREA ==================== */
.orbital-section {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.input-area {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--input-bg);
    padding: 0.5rem 0.8rem 0.5rem 1.5rem;
    border-radius: 50px;
    border: 2px solid var(--saffron);
    box-shadow: 0 4px 20px var(--shadow-soft);
    transition: all 0.3s ease;
}

.input-area:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 6px 25px var(--shadow-medium);
}

#questionInput {
    flex: 1;
    background: transparent !important;
    border: none !important;
    color: var(--text-primary) !important;
    font-size: 1rem;
    padding: 0.8rem 0;
    outline: none !important;
}

#questionInput::placeholder {
    color: var(--text-medium);
}

.input-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Ask Button */
.ask-btn,
.primary-btn {
    background: var(--primary-gradient);
    color: white !important;
    border: none;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ask-btn:hover,
.primary-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-medium);
}

.ask-btn:disabled,
.primary-btn:disabled,
.disabled-btn {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    color: #666 !important;
}

/* Secondary Button */
.secondary-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background: var(--soft-orange);
}

.secondary-btn.small {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
}

/* Info/Guidance Button */
.info-btn-outer {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.info-btn-outer:hover {
    background: var(--soft-orange);
    transform: scale(1.1);
}

/* Guidance Modal (Popup) */
.guidance-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.guidance-modal-content {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 30px;
    width: 95%;
    max-width: 600px;
    max-height: 90vh;
    border: 2px solid var(--primary-color);
    position: relative;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.guidance-modal.hidden {
    display: none;
}

.guidance-box h3 {
    color: var(--deep-saffron);
    margin-bottom: 0.8rem;
    font-family: 'Cinzel', serif;
}

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

.guidance-content {
    font-size: 0.85rem;
    color: var(--text-medium);
}

.guidance-content h4 {
    margin: 1rem 0 0.4rem;
    color: var(--text-dark);
}

.guidance-content ul {
    padding-left: 1.2rem;
}

.guidance-content li {
    margin-bottom: 0.3rem;
}

/* ==================== ANSWER AREA ==================== */
.chat-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 20px;
    border: 2px solid var(--card-border);
    margin: 1.5rem 0;
    text-align: left;
    box-shadow: 0 4px 15px var(--shadow-soft);
    animation: fadeIn 0.5s ease;
}

.modal-content hr {
    border: 0;
    border-top: 1px solid var(--card-border);
    margin: 1.5rem 0;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.answer-box {
    border-left: 4px solid var(--saffron);
}

.question-box {
    border-left: 4px solid var(--accent-gold);
}

.chat-item .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.5rem;
}

.chat-item .label {
    font-family: 'Cinzel', serif;
    color: var(--deep-saffron);
    font-weight: bold;
    font-size: 1rem;
}

.chat-item .timestamp {
    font-size: 0.8rem;
    color: var(--text-light);
}

.short-answer {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    white-space: pre-wrap;
}

.duration-meta {
    display: block;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: right;
}

/* ==================== AUTH OVERLAY ==================== */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.auth-box {
    background: var(--bg-primary);
    border: 2px solid var(--primary-color);
    padding: 2rem;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    margin: 1rem;
    text-align: center;
    box-shadow: 0 10px 40px var(--shadow-medium);
    transition: max-width 0.3s ease, padding 0.3s ease;
}

.auth-box.signup-mode {
    max-width: 650px;
    padding: 1.8rem 2.2rem;
}

.auth-logo {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.auth-box>p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.auth-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--card-border);
}

.tab-btn,
.auth-tab {
    flex: 1;
    padding: 0.8rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.tab-btn.active,
.auth-tab.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    font-weight: 600;
}

.auth-form-content {
    display: none;
}

.auth-form-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.auth-form-content input,
.auth-form-content select {
    width: 100%;
    padding: 0.8rem;
    background: var(--input-bg);
    border: 2px solid var(--card-border);
    border-radius: 10px;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.auth-form-content input:focus,
.auth-form-content select:focus {
    border-color: var(--primary-color);
    outline: none;
}

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

.auth-link {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-link a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

.name-row,
.birth-row,
.time-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.signup-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-bottom: 0.4rem;
}

@media screen and (min-width: 601px) {
    .signup-row.two-cols {
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
    }
}

.birth-row-stacked {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.form-group-full {
    width: 100%;
}

.input-label {
    display: block;
    text-align: left;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
    font-weight: 600;
    text-transform: uppercase;
}

.date-dropdowns {
    display: flex;
    gap: 0.5rem;
}

.date-select {
    padding: 0.5rem 0.3rem;
    background: var(--input-bg);
    border: 2px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    flex: 1;
    min-width: 70px;
    text-align: center;
}

.form-group {
    text-align: left;
    margin-bottom: 0.5rem;
    position: relative;
}

/* ==================== COMPACT FORM LAYOUT ==================== */
.compact-form {
    padding: 0.5rem 0;
}

.form-row {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
    align-items: flex-start;
}

.form-field {
    flex: 1;
    min-width: 0;
    position: relative;
}

.form-field.compact-field {
    flex: 0 0 auto;
    min-width: 80px;
    max-width: 100px;
}

.form-field.flex-grow {
    flex: 2;
}

.form-field.btn-field {
    flex: 0 0 auto;
    min-width: 100px;
}

.compact-select {
    width: 100%;
    padding: 0.5rem;
    background: var(--input-bg);
    border: 2px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.date-time-group {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.mini-select {
    padding: 0.45rem 0.3rem;
    background: var(--input-bg);
    border: 2px solid var(--card-border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.8rem;
    min-width: 50px;
    flex: 1;
    text-align: center;
}

.mini-select.year-select {
    min-width: 65px;
}

.time-separator {
    font-weight: bold;
    color: var(--text-medium);
    font-size: 1rem;
}

.compact-btn {
    padding: 0.55rem 1rem !important;
    font-size: 0.9rem !important;
    white-space: nowrap;
    margin: 0 !important;
}

/* Compact form inputs */
.compact-form input,
.compact-form select {
    padding: 0.4rem 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 0;
}

.compact-form .input-label {
    font-size: 0.6rem;
    margin-bottom: 0.1rem;
}

/* ULTRA-COMPACT auth card for signup */
.auth-card {
    max-width: 500px;
    padding: 0.8rem 1.2rem;
}

.auth-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.auth-card .subtitle {
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
}

.auth-tabs {
    margin-bottom: 0.5rem;
}

.tab-btn {
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
}

/* Compact form rows */
.form-row {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
    align-items: flex-start;
}

.form-field {
    flex: 1;
    min-width: 0;
}

.form-field.compact-field {
    flex: 0 0 auto;
    min-width: 70px;
    max-width: 90px;
}

.form-field.flex-grow {
    flex: 2;
}

.form-field.btn-field {
    flex: 0 0 auto;
    min-width: 90px;
}

.compact-select {
    width: 100%;
    padding: 0.4rem;
    background: var(--soft-orange);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    color: var(--text-dark);
    font-size: 0.85rem;
}

.date-time-group {
    display: flex;
    gap: 0.2rem;
    align-items: center;
}

.mini-select {
    padding: 0.35rem 0.25rem;
    background: var(--soft-orange);
    border: 1px solid var(--card-border);
    border-radius: 5px;
    color: var(--text-dark);
    font-size: 0.75rem;
    min-width: 42px;
    flex: 1;
    text-align: center;
}

.mini-select.year-select {
    min-width: 55px;
}

.time-separator {
    font-weight: bold;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.compact-btn {
    padding: 0.45rem 0.8rem !important;
    font-size: 0.85rem !important;
    white-space: nowrap;
    margin: 0 !important;
}

.compact-form {
    padding: 0.3rem 0;
}

/* Auth form content spacing fix */
.auth-form-content.active {
    padding: 0;
}

/* ==================== MODALS ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 44, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1500;
}

.modal-content {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 30px;
    width: 95%;
    max-width: 480px;
    border: 4px solid var(--saffron);
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.design-aligned {
    padding: 3rem 2rem;
}

.orange-title {
    font-family: 'Cinzel', serif;
    color: var(--deep-saffron);
    text-align: center;
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.history-content {
    max-width: 700px;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--deep-saffron);
    transition: transform 0.3s;
}

.close:hover {
    transform: rotate(90deg);
}

.modal h2 {
    font-family: 'Cinzel', serif;
    color: var(--deep-saffron);
    margin-bottom: 1rem;
    text-align: center;
}

/* History */
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--card-border);
}

.clear-history-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
}

.history-item {
    background: var(--soft-orange);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--saffron);
}

.history-item .h-q {
    font-weight: bold;
    color: var(--deep-saffron);
    margin-bottom: 0.5rem;
}

.history-item .h-a {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.history-item .h-meta {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    text-align: right;
}

/* Location Search */
.location-search-box {
    position: relative;
}

.location-search-box input {
    width: 100%;
    padding: 1rem;
    background: var(--soft-orange);
    border: 2px solid var(--card-border);
    border-radius: 10px;
    color: var(--text-dark);
    font-size: 1rem;
}

.search-results {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    background: var(--bg-primary);
    border-radius: 10px;
    border: 2px solid var(--card-border);
    margin-top: 0.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.search-result-item,
.city-result {
    padding: 0.8rem;
    cursor: pointer;
    border-bottom: 1px solid var(--card-border);
    color: var(--text-dark);
    transition: background 0.2s;
}

.search-result-item:hover,
.city-result:hover {
    background: var(--soft-orange);
}

.current-loc-display {
    text-align: center;
    padding: 1rem;
    background: var(--soft-orange);
    border-radius: 10px;
    margin-top: 1rem;
    border: 2px solid var(--saffron);
}

/* ==================== GUIDANCE BOX ==================== */
.guidance-box {
    background: var(--soft-orange);
    border: 2px solid var(--saffron);
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 1rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.guidance-box h4 {
    color: var(--deep-saffron);
    margin-bottom: 0.5rem;
}

.guidance-box ul {
    padding-left: 1.5rem;
}

.guidance-box li {
    margin-bottom: 0.5rem;
}

/* ==================== UTILITY CLASSES ==================== */
.hidden {
    display: none !important;
}

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

/* Loading */
.loading-oracle {
    text-align: center;
    padding: 2rem;
    font-size: 1.1rem;
    color: var(--deep-saffron);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Rate Limit Error */
.rate-limit-error {
    text-align: center;
    padding: 2rem;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 15px;
}

.rate-limit-error h3 {
    color: #856404;
    margin-bottom: 1rem;
}

.upgrade-btn {
    display: inline-block;
    background: var(--saffron-gradient);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    margin-top: 1rem;
    font-weight: 600;
}

/* Subscription Badge */
.tier-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tier-free {
    background: #e9ecef;
    color: #6c757d;
}

.tier-basic {
    background: #cce5ff;
    color: #004085;
}

.tier-pro {
    background: #fff3cd;
    color: #856404;
}

.tier-premium {
    background: linear-gradient(135deg, #ffd700, #ff9933);
    color: white;
}

/* Query Remaining Badge */
.query-remaining {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Feedback Buttons */
.history-feedback {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.history-feedback button {
    background: var(--soft-orange);
    border: 2px solid var(--card-border);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.history-feedback button:hover,
.history-feedback button.active {
    background: var(--saffron);
    border-color: var(--saffron);
}

/* Model Tag */
.model-tag {
    display: inline-block;
    background: var(--soft-orange);
    color: var(--text-light);
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
}

/* Cosmic Loader */
#loader {
    padding: 3rem;
    text-align: center;
}

.cosmic-loader {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.cosmic-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: rotate-ring linear infinite;
}

.ring-1 {
    border-top-color: var(--saffron);
    animation-duration: 2s;
}

.ring-2 {
    border-right-color: var(--spiritual-purple);
    animation-duration: 1.5s;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
}

.ring-3 {
    border-bottom-color: var(--golden);
    animation-duration: 1s;
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
}

.cosmic-core {
    position: absolute;
    top: 35%;
    left: 35%;
    width: 30%;
    height: 30%;
    background: var(--gold-gradient);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--bright-gold);
    animation: core-pulse 2s ease-in-out infinite;
}

@keyframes rotate-ring {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes core-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

#oracleStatusText {
    color: var(--text-medium);
    font-style: italic;
    font-size: 0.95rem;
}

/* Charts Layout */
.charts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem auto;
    justify-items: center;
    max-width: 100%;
}

.chart-box {
    width: 100%;
    text-align: center;
}

.chart-box h3 {
    font-size: 0.95rem;
    color: var(--deep-saffron);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.chart-data {
    background: var(--input-bg);
    padding: 1rem;
    border-radius: 12px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    white-space: pre;
    overflow-x: auto;
    min-height: 200px;
    text-align: left;
    margin: 0 auto;
}

/* SVG Chart Container */
.chart-svg-container {
    background: var(--input-bg);
    border-radius: 12px;
    border: 1px solid var(--card-border);
    padding: 1rem;
    margin: 0 auto;
    min-height: 200px;
}

.chart-svg-container svg {
    width: 100%;
    height: auto;
    max-width: 380px;
    margin: 0 auto;
    display: block;
}

/* Chart Meta Info */
.chart-meta {
    text-align: center;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.chart-meta-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

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

/* Kundali Details Table */
.chart-details-container {
    margin-top: 0.75rem;
}

.kundali-details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    background: var(--input-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.kundali-details-table thead {
    background: var(--card-bg);
}

.kundali-details-table th {
    padding: 0.5rem 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--deep-saffron);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    border-bottom: 2px solid var(--saffron);
}

.kundali-details-table td {
    padding: 0.4rem 0.4rem;
    border-bottom: 1px solid var(--card-border);
    color: var(--text-primary);
    vertical-align: middle;
}

.kundali-details-table td small {
    color: var(--text-secondary);
    font-size: 0.65rem;
    display: block;
}

.kundali-details-table .lagna-row {
    background: rgba(255, 153, 51, 0.08);
}

.kundali-details-table .lagna-row td {
    border-bottom: 2px solid var(--saffron);
    font-weight: 600;
}

.kundali-details-table .benefic-planet td:first-child strong {
    color: #2ecc71;
}

.kundali-details-table .malefic-planet td:first-child strong {
    color: #e74c3c;
}

.kundali-details-table .neutral-planet td:first-child strong {
    color: #3498db;
}

.kundali-details-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.1);
}

/* Chart Legend */
.chart-legend {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: var(--text-light);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-dot.benefic {
    background: #2ecc71;
}

.legend-dot.malefic {
    background: #e74c3c;
}

.legend-dot.neutral {
    background: #3498db;
}

.duration-meta {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* Design Aligned Form Styles */
.design-aligned .form-row {
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.design-aligned .input-label {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    /* Using variable for high contrast */
    font-weight: 600;
    text-transform: none;
    margin-bottom: 0.4rem;
}

.design-aligned input:not([type="checkbox"]),
.design-aligned select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: var(--bg-primary);
    font-size: 1rem;
    color: var(--text-primary);
}

select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.design-aligned .mini-select {
    background: var(--input-bg);
    border: 1px solid var(--card-border);
}

.design-aligned .time-input-clear {
    max-width: 150px;
}

.design-aligned .wide-pill {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.design-aligned .btn-container.centered {
    display: flex;
    justify-content: center;
    width: 100%;
}

.design-aligned input::placeholder {
    color: var(--text-medium);
}

.design-aligned select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%3E%3Cpath%20fill%3D%22%23E67300%22%20d%3D%22M10.293%203.293L6%207.586%201.707%203.293A1%201%200%2000.293%204.707l5%205a1%201%200%20001.414%200l5-5a1%201%200%2010-1.414-1.414z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablet */
@media screen and (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0.5rem;
    }

    .header-top-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .user-actions-left,
    .header-lang-controls {
        width: 100%;
        justify-content: center;
        padding: 0.3rem 0.5rem;
    }

    .logo {
        font-size: 2rem;
    }

    .om-header {
        width: 80px;
        height: 80px;
    }

    .main-content-center {
        padding-top: 120px;
    }

    .input-area {
        flex-direction: column;
        padding: 1rem;
        border-radius: 20px;
    }

    #questionInput {
        width: 100%;
        text-align: center;
    }

    .ask-btn {
        width: 100%;
    }

    .auth-box {
        padding: 1.5rem;
        margin: 0.5rem;
    }

    .name-row,
    .birth-row {
        grid-template-columns: 1fr;
    }

    .charts-container {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media screen and (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .user-actions-left .icon-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
    }

    #userName {
        font-size: 0.7rem;
    }

    .logo {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }

    .om-header {
        width: 60px;
        height: 60px;
    }

    .chat-item {
        padding: 1rem;
        margin: 1rem 0;
    }

    .short-answer {
        font-size: 1rem;
    }

    .auth-logo {
        font-size: 1.5rem;
    }

    .date-dropdowns {
        flex-direction: column;
    }

    .date-select {
        width: 100%;
    }

    .modal-content {
        padding: 1rem;
        margin: 0.5rem;
    }
}

/* Prevent image zoom on iOS */
@media screen and (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }

    input,
    select,
    textarea {
        font-size: 16px !important;
        /* Prevents iOS zoom on focus */
    }
}

/* Dark mode preference (optional) */
@media (prefers-color-scheme: dark) {
    /* Users who prefer dark mode can override
       But for spiritual/prediction app, we keep light by default */
}

/* ==================== FORM VALIDATION ERRORS ==================== */
.form-error-message {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe4a0 100%);
    border: 2px solid #ffc107;
    border-left: 5px solid #dc3545;
    color: #856404;
    padding: 1rem;
    border-radius: 10px;
    margin: 0.8rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: shake 0.5s ease-in-out, fadeIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.form-error-message .error-icon {
    font-size: 1.2rem;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/* Field with error highlight */
.field-error {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
    animation: pulse-error 1s ease-in-out infinite;
}

@keyframes pulse-error {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.2);
    }
}

/* Success state for fields */
.field-success {
    border-color: #28a745 !important;
    background-color: #f0fff4 !important;
}

/* City selection hint */
.city-selection-hint {
    font-size: 0.75rem;
    color: var(--deep-saffron);
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.city-selection-hint::before {
    content: "👆";
}

/* Better city results styling */
.search-results.small-results {
    max-height: 150px;
    overflow-y: auto;
}

.city-result {
    cursor: pointer;
    transition: all 0.2s ease;
}

.city-result:hover {
    background: var(--saffron) !important;
    color: white;
    transform: translateX(5px);
}

/* v1 Feedback Compatibility */
.feedback-btn.active.like {
    background: #2ecc71 !important;
    color: white !important;
    border-color: #2ecc71 !important;
}

.feedback-btn.active.dislike {
    background: #e74c3c !important;
    color: white !important;
    border-color: #e74c3c !important;
}

/* ==================== DESKTOP QUERY INPUT ENHANCEMENT ==================== */
@media (min-width: 1024px) {

    /* Wider input area for desktop */
    .input-area {
        max-width: 900px;
        width: 90%;
        margin: 0 auto;
    }

    /* Remove scrollbar and resize handle, allow auto-grow */
    #questionInput {
        resize: none;
        overflow: hidden;
        min-height: 24px;
        max-height: 200px;
        line-height: 1.5;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
    }

    #questionInput::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    /* Ensure the main container allows full width */
    .main-content-center main.container {
        max-width: 1000px;
    }
}

/* ==================== POLICY MODAL STYLES ==================== */

.policy-modal-content {
    max-width: 700px;
    max-height: 90vh;
}

.policy-intro {
    text-align: center;
    color: var(--text-medium);
    margin-bottom: 1rem;
}

.policy-scroll-container {
    max-height: 50vh;
    overflow-y: auto;
    background: var(--soft-orange);
    border: 2px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.policy-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.policy-text h3 {
    color: var(--deep-saffron);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
}

.policy-text h3:first-child {
    margin-top: 0;
}

.policy-text ul {
    margin-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.policy-text li {
    margin-bottom: 0.4rem;
}

.policy-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.policy-accept-btn {
    min-width: 200px;
}

/* Danger Button */
.danger-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.danger-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71d2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

/* Delete Confirmation Modal */
.delete-confirm-content {
    max-width: 450px;
    text-align: center;
}

.delete-confirm-content p {
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

/* Policy Checkbox Row */
.policy-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 0.8rem;
    background: var(--soft-orange);
    border-radius: 8px;
    border: 1px solid var(--card-border);
}

.policy-checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--deep-saffron);
    cursor: pointer;
}

.policy-checkbox-row label {
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.4;
    cursor: pointer;
}

.close-modal {
    color: var(--text-muted);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-light);
    text-decoration: none;
    cursor: pointer;
}

.policy-checkbox-row a:hover {
    color: var(--saffron);
}

/* City Selection Hint */
.city-selection-hint {
    display: block;
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 0.3rem;
}

/* ==================== SIDE MENU ==================== */
.menu-icon-btn {
    font-size: 1.2rem;
    padding: 0.2rem 0.6rem !important;
}

.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 4000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.side-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -320px;
    /* Start off-screen */
    width: 300px;
    height: 100%;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 4001;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-menu-overlay.open .side-menu {
    left: 0;
}

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.side-menu-header h2 {
    color: #FFFFFF;
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin: 0;
}

.close-menu {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
}

.close-menu:hover {
    color: #FFFFFF;
    transform: scale(1.1);
}

.side-menu-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.side-menu-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.side-menu-item:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.side-menu-divider {
    height: 1px;
    background: var(--card-border);
    margin: 0.5rem 0;
}

.side-menu-theme {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.side-menu-theme label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
}

.logout-item {
    margin-top: auto;
    border-color: rgba(236, 72, 153, 0.3);
}

.logout-item:hover {
    background: rgba(236, 72, 153, 0.1);
    border-color: var(--accent-pink);
    color: var(--accent-pink);
}

/* ==================== SIDE MENU LIGHT THEME OVERRIDES ==================== */
[data-theme="light"] .side-menu {
    background: rgba(255, 248, 231, 0.95);
    /* matching header-bg for light */
    border-right: 1px solid var(--card-border);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .side-menu-header {
    border-bottom: 1px solid var(--card-border);
}

[data-theme="light"] .side-menu-header h2 {
    color: var(--deep-saffron) !important;
}

[data-theme="light"] .close-menu {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .close-menu:hover {
    color: var(--text-primary) !important;
}

[data-theme="light"] .side-menu-item {
    background: var(--input-bg) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--card-border) !important;
    box-shadow: 0 4px 6px rgba(218, 165, 32, 0.05) !important;
    /* very soft gold shadow */
}

[data-theme="light"] .side-menu-item:hover {
    background: var(--card-bg) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 6px 15px rgba(218, 165, 32, 0.15) !important;
}