:root {
    --primary-color: #e91c94;
    --primary-light: #fce4ec;
    --primary-glow: rgba(233, 28, 148, 0.3);
    --bg-gradient: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%);
    /* Warm premium gradient */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-main: #1a1a1a;
    --text-muted: #64748b;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    --radius-lg: 28px;
    --radius-md: 20px;
    --transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --chat-bg: #f1f5f9;
    /* Slightly darker slate for better contrast */
    --ai-msg-bg: #ffffff;
    /* Pure white bubbles to pop against the slate bg */
}

/* Base Styles */
body {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #eff6ff 100%);
    background-attachment: fixed;
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    width: 100vw;
}

/* Theme Presets */
body.theme-pink {
    --primary-color: #e91c94;
    --primary-light: #fce4ec;
    --primary-glow: rgba(233, 28, 148, 0.3);
}

body.theme-pink.dark-mode {
    --primary-light: rgba(233, 28, 148, 0.15);
}

body.theme-blue {
    --primary-color: #6366f1;
    --primary-light: #eef2ff;
    --primary-glow: rgba(99, 102, 241, 0.3);
}

body.theme-blue.dark-mode {
    --primary-light: rgba(99, 102, 241, 0.15);
}

body.theme-green {
    --primary-color: #10b981;
    --primary-light: #ecfdf5;
    --primary-glow: rgba(16, 185, 129, 0.3);
}

body.theme-green.dark-mode {
    --primary-light: rgba(16, 185, 129, 0.15);
}

body.theme-orange {
    --primary-color: #f59e0b;
    --primary-light: #fffbeb;
    --primary-glow: rgba(245, 158, 11, 0.3);
}

body.theme-orange.dark-mode {
    --primary-light: rgba(245, 158, 11, 0.15);
}

body.theme-purple {
    --primary-color: #a855f7;
    --primary-light: #f3e8ff;
    --primary-glow: rgba(168, 85, 247, 0.3);
}

body.theme-purple.dark-mode {
    --primary-light: rgba(168, 85, 247, 0.15);
}

body.theme-cyan {
    --primary-color: #06b6d4;
    --primary-light: #ecfeff;
    --primary-glow: rgba(6, 182, 212, 0.3);
}

body.theme-cyan.dark-mode {
    --primary-light: rgba(6, 182, 212, 0.15);
}

body.theme-red {
    --primary-color: #ef4444;
    --primary-light: #fef2f2;
    --primary-glow: rgba(239, 68, 68, 0.3);
}

body.theme-red.dark-mode {
    --primary-light: rgba(239, 68, 68, 0.15);
}

body.dark-mode {
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --chat-bg: #0f172a;
    /* Dark mode chat background */
    --ai-msg-bg: rgba(30, 41, 59, 0.85);
    /* Dark slate for dark mode messages */
    background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e293b 100%);
}

body.dark-mode .setting-item,
body.dark-mode .menu-item {
    border-color: #2a2a2a;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* Hide Scrollbars */
::-webkit-scrollbar {
    display: none;
}

html,
body {
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow-x: hidden;
}

/* Body property definition merged into earlier block */

#app {
    max-width: 500px;
    margin: 0 auto;
    height: 100vh;
    height: 100dvh;
    background: transparent;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Page Transitions */
.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Changed to full height to allow bottom input */
    padding: 20px 16px calc(140px + env(safe-area-inset-bottom)) 16px;
    /* Increased bottom padding to clear floating nav + safe area */
    /* Added bottom padding for nav */
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(20px);
    display: flex;
    flex-direction: column;
}

#chat-page {
    overflow: hidden;
    padding-bottom: 0;
    background-color: var(--chat-bg);
}

.page.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Home Header */
.home-header {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-top: 20px;
}

.welcome-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.greeting {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.welcome-text {
    font-size: 44px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-main);
    letter-spacing: -1.5px;
}

.add-btn {
    display: none;
    /* Removed as requested, moved to middle of nav */
}

/* Search Bar Removed */

/* Sections */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
}

/* Suggestions List */
.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.suggestion-pill {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding: 16px 24px;
    border-radius: 22px;
    box-shadow: var(--shadow);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.suggestion-pill:hover {
    transform: scale(1.02) translateX(8px);
    border-color: var(--primary-color);
    background: var(--primary-light);
    box-shadow: 0 15px 35px var(--primary-glow);
}

body.dark-mode .suggestion-pill:hover {
    box-shadow: none;
    border-color: var(--primary-color);
    background: var(--primary-light);
}

body.dark-mode .dropdown-menu {
    background: #1e293b;
    /* Matches dark theme slate background */
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .suggestion-pill {
    background: var(--card-bg);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.05);
}

.card-icon {
    display: none;
}

/* Chat Items */
.chats-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 20px;
}

.chat-item {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding: 20px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

.chat-item:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary-color);
    background: var(--primary-light);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

body.dark-mode .chat-item:hover {
    box-shadow: none;
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.chat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-info {
    flex: 1;
}

.chat-time {
    font-size: 13px;
    color: var(--text-muted);
}

.chat-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.delete-chat-btn {
    padding: 8px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
}

.delete-chat-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}

body.dark-mode .delete-chat-btn:hover {
    background: #450a0a;
}

.chat-info p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Chat Page Specifics */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    position: relative;
}

.back-btn,
.options-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    z-index: 5;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.back-btn:focus,
.options-btn:focus {
    outline: none;
    box-shadow: var(--shadow);
}

.header-center {
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

body.dark-mode .header-center {
    background: #0f172a;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.model-selector {
    display: flex;
    gap: 4px;
}

.model-btn {
    border: none;
    background: transparent;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.model-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.dark-mode .model-btn.active {
    background: #1e293b;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.chat-status {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.message-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 12px 120px 12px;
    /* Increased horizontal padding (32px) and bottom spacing */
    /* Increased bottom padding to clear input bar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.message-list::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

#chat-page {
    overflow: hidden !important;
    padding-bottom: 0 !important;
}


.message {
    max-width: 85%;
    padding: 20px 28px;
    /* Increased horizontal padding slightly */
    border-radius: 20px;
    font-size: 15px;
    line-height: 1.6;
    /* Slight increase in line height */
    position: relative;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    align-self: flex-end;
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
}

.message.ai {
    align-self: flex-start;
    background: var(--ai-msg-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--text-main);
    border-bottom-left-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    /* Slightly more defined shadow */
    border: none;
}

body.dark-mode .message.ai {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    /* Stronger shadow in dark mode */
}

/* List styling inside messages */
.message ol,
.message ul {
    margin: 12px 0 12px 20px;
    padding-left: 0;
}

.message li {
    margin-bottom: 8px;
}

.message li:last-child {
    margin-bottom: 0;
}

.message-footer {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    /* Changed from #f0f0f0 to glass-border */
    padding-top: 8px;
}

/* Message Footer Icons */
.msg-icon {
    cursor: pointer;
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

.msg-icon:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.msg-icon.active {
    color: var(--primary-color);
    fill: var(--primary-color);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 55px;
    right: 0;
    background: white;
    /* Solid white background for visibility */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    /* Slightly stronger shadow */
    display: none;
    flex-direction: column;
    width: 180px;
    z-index: 100;
    overflow: hidden;
    animation: slideDown 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .dropdown-menu {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.dropdown-menu.active {
    display: flex;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu button {
    padding: 12px 16px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    color: var(--text-main);
}

.dropdown-menu button:hover {
    background: var(--primary-light);
    opacity: 0.9;
}

.dropdown-menu button.danger {
    color: #ff4d4d;
}

.dropdown-menu i {
    width: 16px;
    height: 16px;
}

/* Input Container */
.chat-input-container {
    padding: 20px 16px calc(12px + env(safe-area-inset-bottom)) 16px;
    background: var(--chat-bg);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 100%;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    position: relative;
    z-index: 10;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.03);
}

.disclaimer {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    opacity: 0.7;
    margin: 0;
}

body.dark-mode .chat-input-container {
    background: var(--chat-bg);
    border-top: none;
    box-shadow: none;
}

.input-wrapper {
    width: 100%;
    background: var(--chat-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 8px 0 24px;
    box-shadow: none;
    transition: var(--transition);
}

body.dark-mode .input-wrapper {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

.input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text-main);
}

.voice-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--primary-glow);
}

.voice-btn i {
    width: 20px;
    height: 20px;
}

.input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
}

.voice-btn:hover {
    transform: scale(1.05);
}

/* Bottom Nav Redesign (V6 - Floating Pill) */
.bottom-nav {
    height: 100px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 100;
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 500px;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.bottom-nav.hidden {
    transform: translateY(120px);
    opacity: 0;
}

.nav-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 15px;
    border-radius: 40px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    pointer-events: auto;
    width: 92%;
    margin-bottom: calc(20px + env(safe-area-inset-bottom));
}

.nav-item {
    border: none;
    background: transparent;
    color: #94A3B8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
}

.nav-item i {
    width: 22px;
    height: 22px;
    stroke-width: 1.8px;
}

.nav-item span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1px;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-add-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #ff4d4d);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--primary-glow);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.nav-add-btn:hover {
    transform: scale(1.05);
}

.nav-add-btn i {
    width: 24px;
    height: 24px;
    stroke-width: 2.5px;
}

body.dark-mode .nav-container {
    background: rgba(30, 30, 30, 0.9);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}


/* Profile Page Styles */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.profile-header h1 {
    font-size: 28px;
    font-weight: 700;
}

.settings-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: white;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}

body.dark-mode .settings-btn {
    background: #1e1e1e;
}

.profile-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    position: relative;
    border: 1px solid var(--glass-border);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    border: 2px solid transparent;
    transition: var(--transition);
}

.profile-avatar:hover {
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-main);
}

.profile-info p {
    font-size: 14px;
    color: var(--text-muted);
}

.edit-profile-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    color: var(--primary-color);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 2;
}

/* Settings & Menu Lists */
.settings-list,
.menu-list {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
    margin-bottom: 16px;
}

.setting-item,
.menu-item {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
    background: transparent;
    border-left: none;
    border-right: none;
    width: 100%;
}

.menu-item {
    border: none;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-main);
    cursor: pointer;
    font-weight: 600;
}

.menu-item:last-child,
.setting-item:last-child {
    border-bottom: none;
}

.setting-item:hover,
.menu-item:hover {
    background: var(--primary-light);
}

.preference-container textarea {
    width: 100%;
    min-height: 65px;
    max-height: 200px;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    color: var(--text-main);
    font-size: 15px;
    outline: none;
    transition: var(--transition);
    resize: none;
    overflow-y: hidden;
    display: block;
    line-height: 1.4;
}

.preference-container textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* System Prompt Input styled above */

.profile-section h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin: 16px 0 10px 4px;
}

.edit-profile-btn:hover {
    background: var(--bg-color);
}

/* Removed duplicate/legacy settings styles */

.setting-label {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: var(--text-main);
}

.setting-label i {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

/* Switch UI */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #eee;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(22px);
}

/* Removed duplicate edit-container styles */

.save-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 40px;
    /* Pill shape like in image */
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--primary-glow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px var(--primary-glow);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Theme Options */
.theme-grid {
    display: flex;
    gap: 12px;
}

.theme-option {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 0 0 1px #eee;
    transition: var(--transition);
}

.theme-option.active {
    transform: scale(1.15);
    box-shadow: 0 0 0 2px var(--primary-color);
}


.menu-item .arrow {
    width: 16px;
    height: 16px;
    color: #ccc;
}

/* Removed duplicate preference textarea styles */


/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    color: var(--text-main);
    padding: 32px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 400px;
}

.input-group {
    margin: 20px 0;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #ddd;
    outline: none;
}

.primary-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
}

/* Modal for Privacy & About */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 30px;
    width: 100%;
    max-width: 450px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

body.dark-mode .modal-content {
    background: #1e1e1e;
    color: white;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 22px;
    font-weight: 700;
}

.close-modal {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

body.dark-mode .close-modal {
    background: #333;
    color: white;
}

.modal-body {
    line-height: 1.6;
    font-size: 14px;
    color: var(--text-main);
}

.modal-body p {
    margin-bottom: 15px;
}

.dev-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--primary-light);
    border-radius: 20px;
}

.dev-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
}

.dev-details h4 {
    font-size: 16px;
    font-weight: 600;
}

.dev-details p {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
}

/* Responsive fixes */
@media (max-width: 500px) {
    #app {
        width: 100%;
    }
}
