* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Perqlit Teal-First Minimal Color Palette */
    --discovery-teal: #00BFA6;
    --signal-blue: #1F6FFF;
    --beam-mint: #D2F7F1;
    --sky-mist: #E6F4FF;
    --clean-white: #FFFFFF;
    --charcoal-black: #1C1E21;
    --cool-gray: #6B7280;
    --blue-spark: #3A5DFF;
    --mint-glow: #B9FBC0;
    
    /* Updated theme variables - Teal-First */
    --bg-primary: linear-gradient(135deg, var(--beam-mint) 0%, var(--clean-white) 100%);
    --bg-secondary: var(--clean-white);
    --text-primary: var(--charcoal-black);
    --text-secondary: var(--cool-gray);
    --text-muted: var(--cool-gray);
    --border-color: #e2e8f0;
    --shadow: rgba(28, 30, 33, 0.1);
    --input-bg: var(--clean-white);
    --result-bg: var(--clean-white);
    --card-bg: var(--clean-white);
    --accent-color: var(--discovery-teal);
    --hover-color: var(--signal-blue);
    --highlight-color: var(--blue-spark);
    --success-color: var(--mint-glow);
    --alternate-bg: var(--sky-mist);
}

[data-theme="dark"] {
    --bg-primary: #1a1f2e;
    --bg-secondary: #1a1f2e;
    --text-primary: var(--clean-white);
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #374151;
    --shadow: rgba(0, 0, 0, 0.3);
    --input-bg: #2d3748;
    --result-bg: #1a1f2e;
    --card-bg: #2d3748;
    --accent-color: var(--discovery-teal);
    --hover-color: var(--signal-blue);
    --highlight-color: var(--blue-spark);
    --success-color: var(--mint-glow);
    --alternate-bg: rgba(0, 191, 166, 0.1);
}

[data-theme="dark"] body {
    background: var(--bg-primary);
}

/* Dark mode gradient at bottom */
[data-theme="dark"] body::after {
    background: linear-gradient(to top, 
        rgba(0, 191, 166, 0.20) 0%,     /* discovery-teal - stronger in dark */
        rgba(0, 191, 166, 0.16) 20%,    /* more teal coverage */
        rgba(31, 111, 255, 0.12) 50%,   /* signal-blue */
        rgba(139, 92, 246, 0.08) 75%,   /* violet */
        transparent 100%
    );
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--clean-white);
    min-height: 100vh;
    color: var(--text-primary);
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Subtle gradient at bottom of page */
body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, 
        rgba(0, 191, 166, 0.15) 0%,     /* discovery-teal - stronger */
        rgba(0, 191, 166, 0.12) 20%,    /* more teal coverage */
        rgba(31, 111, 255, 0.08) 50%,   /* signal-blue */
        rgba(139, 92, 246, 0.05) 75%,   /* violet */
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}

.page-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

/* Top Navigation Bar */
.top-nav {
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-radius: 0 0 20px 20px;
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 30px var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
}

/* Gradient overlay for top navigation */
.top-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        transparent 0%,
        rgba(139, 92, 246, 0.03) 25%,   /* violet */
        rgba(31, 111, 255, 0.05) 50%,   /* signal-blue */
        rgba(0, 191, 166, 0.08) 80%,    /* discovery-teal */
        rgba(0, 191, 166, 0.10) 100%    /* discovery-teal stronger */
    );
    border-radius: 0 0 20px 20px;
    pointer-events: none;
    z-index: -1;
}

/* Dark mode gradient for top navigation */
[data-theme="dark"] .top-nav::before {
    background: linear-gradient(to bottom, 
        transparent 0%,
        rgba(139, 92, 246, 0.05) 25%,   /* violet */
        rgba(31, 111, 255, 0.08) 50%,   /* signal-blue */
        rgba(0, 191, 166, 0.12) 80%,    /* discovery-teal */
        rgba(0, 191, 166, 0.15) 100%    /* discovery-teal stronger */
    );
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Main Content - Centered */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-radius: 20px 20px 0 0;
    padding: 1rem 2rem;
    text-align: center;
    box-shadow: 0 -5px 15px var(--shadow);
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Clickable brand elements */
.clickable-brand {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickable-brand:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

#userName {
    color: var(--text-secondary);
    font-weight: 500;
}

.dark-mode-toggle {
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.dark-mode-toggle:hover {
    border-color: var(--text-secondary);
    transform: scale(1.1);
}


.dark-mode-icon {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

[data-theme="dark"] .dark-mode-icon {
    transform: rotate(180deg);
}

.settings-btn {
    background: var(--accent-color);
    color: var(--clean-white);
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 191, 166, 0.2);
}

.settings-btn:hover {
    background: var(--hover-color);
    color: var(--clean-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(31, 111, 255, 0.3);
}

/* Settings Dropdown */
.settings-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 160px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.settings-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 0.25rem;
}

.dropdown-item:hover {
    background: var(--alternate-bg);
    color: var(--text-primary);
}

.dropdown-item .material-icons {
    font-size: 18px;
    color: var(--text-secondary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.dropdown-button {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.home-btn {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--clean-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 191, 166, 0.3);
}

.logout-btn {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: var(--clean-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.admin-btn {
    background: var(--hover-color);
    color: var(--clean-white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    min-width: 100px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(31, 111, 255, 0.2);
}

.admin-btn:hover {
    background: var(--highlight-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(58, 93, 255, 0.3);
}

.search-section {
    margin-bottom: 2rem;
    width: 100%;
    max-width: 800px;
    padding: 2rem;
}

.search-container {
    display: flex;
    gap: 0.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

/* Multi-color border for main search box */
.search-input-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 14px;
    z-index: -1;
    background: linear-gradient(
        45deg,
        #00BFA6 0%,
        #1F6FFF 25%,
        #8B5CF6 50%,
        #00BFA6 75%,
        #1F6FFF 100%
    );
    opacity: 0.8;
}

/* Enhanced focus state for search input */
.search-input-wrapper:focus-within::before {
    opacity: 1;
}

/* Hover state for search input wrapper */
.search-input-wrapper:hover::before {
    opacity: 0.9;
}

#searchInput {
    width: 100%;
    padding: 1rem 3.5rem 1rem 1.25rem; /* Extra padding on right for icons */
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background: var(--input-bg);
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

/* Search icon buttons */
.search-icon-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 10;
    width: 28px;
    height: 28px;
}

/* Light mode colors */
.search-icon-btn {
    color: #718096 !important;
}

.search-icon-btn:hover {
    background: #e2e8f0 !important;
    color: #2d3748 !important;
}

/* Dark mode colors */
[data-theme="dark"] .search-icon-btn {
    color: #a0aec0 !important;
}

[data-theme="dark"] .search-icon-btn:hover {
    background: #4a5568 !important;
    color: #e2e8f0 !important;
}

.voice-btn {
    right: 2.2rem; /* Position before the clear button */
}

.voice-btn.listening {
    color: #e74c3c !important;
    animation: pulse 1.5s infinite;
}

.clear-x-btn {
    right: 0.3rem;
}

/* Search icon buttons styling */
.search-icon-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

#searchInput:focus {
    border-color: transparent;
    box-shadow: none;
}

#searchButton {
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: var(--clean-white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 191, 166, 0.3);
}

#searchButton:hover {
    background: var(--hover-color);
    color: var(--clean-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(31, 111, 255, 0.4);
}

#searchButton:active {
    transform: translateY(0);
}

.result-section {
    margin-top: 2rem;
    animation: fadeIn 0.5s ease-in;
}

.result-section h2 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.result-box {
    background: var(--result-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
    word-wrap: break-word;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Welcome Message Styles */
.welcome-message {
    text-align: center;
    padding: 1rem;
}

.welcome-message h3 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.welcome-message p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.welcome-subtitle {
  font-size: 1.18rem;
  color: var(--accent-color);
  margin-top: 0.5em;
  margin-bottom: 0.7em;
  font-weight: 500;
  letter-spacing: 0.1px;
  text-shadow: 0 1px 4px rgba(14, 165, 233, 0.07);
}

/* Dark mode support for welcome subtitle */
[data-theme="dark"] .welcome-subtitle {
  color: #38bdf8;
  text-shadow: 0 1px 4px rgba(56, 189, 248, 0.15);
}

.search-suggestions h4 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Benefits Results Styles */
.benefits-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* No Results Styles */
.no-results {
    text-align: center;
    padding: 2rem;
}

.no-results p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.no-results ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.no-results li {
    background: var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Error Styles */
.error {
    color: #e53e3e;
    font-weight: 600;
}

footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        max-width: 100%;
    }
    
    header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-content h1 {
        font-size: 1.5rem;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    #searchInput {
        padding-right: 4rem; /* More space for icons on mobile */
    }
    
    .search-icon-btn {
        padding: 0.75rem; /* Larger touch targets */
    }
    
    .voice-btn {
        right: 3rem; /* Adjust positioning for mobile */
    }
    
    #searchButton {
        width: 100%;
    }
    
    .card-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .suggestion-tags {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    /* Mobile chat modal improvements */
    .chat-modal-content {
        width: 95vw;
        max-width: none;
        min-width: 300px;
        height: 90vh;
        max-height: none;
        margin: 1rem;
        padding: 1rem;
    }

    .chat-resize-handle {
        display: none; /* Hide resize handle on mobile */
    }

    .chat-hint {
        display: none; /* Hide resize hint on mobile */
    }

    .chat-history {
        height: 60vh;
        min-height: 200px;
    }

    .chat-input-row {
        flex-direction: column;
    }

    #sendChatBtn {
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.item-details-view {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(102,126,234,0.08);
  padding: 2rem 2rem 1.5rem 2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.item-details-view h2 {
  margin-top: 0;
  font-size: 2rem;
  color: #4f46e5;
}
.item-details-view .item-meta {
  font-size: 1rem;
  color: #718096;
  margin-bottom: 1rem;
  display: flex;
  gap: 1.5rem;
}
.item-details-view .signup-bonus {
  background: #e6fffa;
  color: #319795;
  border-radius: 6px;
  padding: 0.2em 0.7em;
  font-size: 0.95em;
  margin-left: 0.5em;
}
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.benefits-list li {
  margin-bottom: 1.1em;
  padding: 0.7em 1em;
  background: #f7fafc;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(102,126,234,0.04);
  font-size: 1.05em;
  display: flex;
  flex-direction: column;
}
.benefits-list .benefit-value {
  color: #4f46e5;
  font-size: 0.98em;
  margin-top: 0.2em;
}

.multiple-matches {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(102,126,234,0.08);
  padding: 2rem 2rem 1.5rem 2rem;
  max-width: 500px;
  margin: 2rem auto;
  text-align: center;
}
.multiple-matches h3 {
  color: #4f46e5;
  margin-bottom: 1rem;
}
.match-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.match-list li {
  margin-bottom: 0.7em;
}
.item-match-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.08em;
  transition: color 0.2s;
}
.item-match-link:hover {
  color: #4f46e5;
  text-decoration: underline;
}

/* Recommendations Section */
.recommendations-section {
  margin-bottom: 2rem;
}

.recommendations {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.recommendations h3 {
  margin: 0 0 1rem 0;
  color: #4f46e5;
  font-size: 1.3rem;
}

.recommendation-section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.recommendation-section h4 {
  margin: 0 0 1rem 0;
  color: #374151;
  font-size: 1.1rem;
}

.recommendation-benefit {
  background: #f7fafc;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #e2e8f0;
}

.recommendation-benefit:last-child {
  margin-bottom: 0;
}

.recommendation-benefit .benefit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.recommendation-badge {
  background: #667eea;
  color: white;
  padding: 0.2em 0.6em;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.recommendation-badge.add-this-card {
  background: #f56565;
}

.recommendation-badge.better-value {
  background: #48bb78;
}

.recommendation-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(102,126,234,0.08);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid #667eea;
}

.recommendation-card.missing-benefit {
  border-left-color: #f56565;
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
}

.recommendation-card.better-alternative {
  border-left-color: #48bb78;
  background: linear-gradient(135deg, #f0fff4 0%, #fff 100%);
}

.recommendation-header h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
  color: #4f46e5;
}

.recommendation-message {
  margin: 0 0 1rem 0;
  color: #718096;
  font-size: 1rem;
}

.recommendation-benefits {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recommendation-benefit h4 {
  margin: 0;
  font-size: 1.1rem;
  color: #2d3748;
}

.recommendation-benefit h5 {
  margin: 0 0 0.3rem 0;
  font-size: 1rem;
  color: #4f46e5;
}

.recommendation-benefit .description {
  margin: 0 0 0.5rem 0;
  color: #718096;
  font-size: 0.95rem;
}

.recommendation-benefit .value {
  margin: 0;
  color: #4f46e5;
  font-weight: 500;
  font-size: 0.95rem;
}

/* User Selection Indicators */
.benefit-card.user-selected {
  border: 2px solid #48bb78;
  background: linear-gradient(135deg, #f0fff4 0%, #fff 100%);
}

.user-badge {
  background: #48bb78;
  color: white;
  padding: 0.2em 0.6em;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-left: 0.5rem;
}

.user-badge-large {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #48bb78;
  color: white;
  padding: 0.3em 0.8em;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
}

.benefit-card {
  position: relative;
}

/* Enhanced benefit cards */
.benefit-card.best-match {
  border: 2px solid #667eea;
  background: linear-gradient(135deg, #f7fafc 0%, #fff 100%);
}

.benefit-card.best-match.user-selected {
  border: 2px solid #48bb78;
  background: linear-gradient(135deg, #f0fff4 0%, #fff 100%);
}

/* Responsive design for recommendations */
@media (max-width: 768px) {
  .recommendation-benefit .benefit-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  
  .recommendation-benefit .annual-fee {
    font-size: 0.9rem;
  }
  
  .user-badge-large {
    position: static;
    display: inline-block;
    margin-top: 0.5rem;
  }
}

#askPerqlitBtn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-left: 0.5rem;
}
#askPerqlitBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(118, 75, 162, 0.3);
}

/* Chat Modal Styles */
.chat-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
}
.chat-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    min-width: 350px;
    min-height: 400px;
    max-height: 80vh;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    resize: both;
    overflow: auto;
}

/* Resize handle for chat modal */
.chat-resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    cursor: se-resize;
    background: linear-gradient(135deg, transparent 50%, #764ba2 50%);
    border-radius: 0 0 16px 0;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.chat-resize-handle:hover {
    opacity: 1;
}

.chat-modal-content:hover .chat-resize-handle {
    opacity: 0.8;
}

.close-chat-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: #764ba2;
    cursor: pointer;
    z-index: 10;
}


.chat-hint {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 10px;
    text-align: center;
}

.chat-hint small {
    color: #856404;
    font-size: 0.8rem;
    line-height: 1.3;
}

.chat-history {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    height: 200px;
    min-height: 150px;
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #2d3748;
}

/* Chat message styling */
.chat-history .user-msg,
.chat-history .bot-msg {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    line-height: 1.5;
}

.chat-history .user-msg {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    margin-left: 2rem;
}

.chat-history .bot-msg {
    background: #f3e5f5;
    border-left: 4px solid #9c27b0;
    margin-right: 2rem;
}

.chat-history .user-msg strong,
.chat-history .bot-msg strong {
    color: #2d3748;
    font-weight: 600;
}

.chat-history .loading {
    color: #6b7280;
    font-style: italic;
}

.chat-input-row {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

#chatInput {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    background: white;
}
#chatInput:focus {
    border-color: #764ba2;
    box-shadow: 0 0 0 2px rgba(118, 75, 162, 0.1);
}
#sendChatBtn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
#sendChatBtn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Dark mode support for chat modal */
[data-theme="dark"] .chat-modal-content {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

[data-theme="dark"] .chat-history {
    background: var(--input-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .chat-history .user-msg {
    background: rgba(33, 150, 243, 0.15);
    border-left-color: #2196f3;
    color: var(--text-primary);
}

[data-theme="dark"] .chat-history .bot-msg {
    background: rgba(156, 39, 176, 0.15);
    border-left-color: #9c27b0;
    color: var(--text-primary);
}

[data-theme="dark"] .chat-history .user-msg strong,
[data-theme="dark"] .chat-history .bot-msg strong {
    color: var(--text-primary);
}

[data-theme="dark"] #chatInput {
    background: var(--input-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] #chatInput:focus {
    border-color: #764ba2;
    box-shadow: 0 0 0 2px rgba(118, 75, 162, 0.2);
}

[data-theme="dark"] .close-chat-modal {
    color: var(--text-secondary);
}


[data-theme="dark"] .chat-hint {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
}

[data-theme="dark"] .chat-hint small {
    color: #fbbf24;
}

/* Benefit Item Styles */
.benefit-item {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.benefit-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.benefit-item.user-benefit {
    border-left: 4px solid #48bb78;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-primary) 100%);
}

.benefit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.benefit-badge {
    background: #667eea;
    color: white;
    padding: 0.2em 0.6em;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.benefit-badge.user-card {
    background: #48bb78;
}

.benefit-badge.other-card {
    background: #6b7280;
}

.benefit-details {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.benefit-value {
    color: var(--benefit-green, #4f46e5);
    font-weight: 500;
    font-size: 0.95rem;
}

[data-theme="dark"] .benefit-value {
    --benefit-green: #68d391;
}

.no-user-benefits {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 1rem;
}

/* Recommendations Section - Dark Mode Fixes */
[data-theme="dark"] .recommendations,
[data-theme="dark"] .recommendation-section {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}
[data-theme="dark"] .recommendation-section h4,
[data-theme="dark"] .recommendations h3 {
    color: var(--text-primary);
}
[data-theme="dark"] .recommendation-benefit {
    background: var(--card-bg);
    border-color: var(--border-color);
}
[data-theme="dark"] .recommendation-benefit .benefit-header,
[data-theme="dark"] .recommendation-benefit h4,
[data-theme="dark"] .recommendation-benefit h5 {
    color: var(--text-primary);
}
[data-theme="dark"] .recommendation-benefit .description {
    color: var(--text-secondary);
}
[data-theme="dark"] .recommendation-badge {
    color: white;
    font-weight: 600;
    opacity: 1;
}
[data-theme="dark"] .recommendation-benefit .value {
    color: #68d391;
}
[data-theme="dark"] .recommendation-section {
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Best For You Card Styling */
.benefit-item.best-for-you {
  position: relative;
  border: 2px solid #ff6b35;
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255, 107, 53, 0.05) 100%);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.benefit-item.best-for-you::before {
  content: "⭐ BEST FOR YOU";
  position: absolute;
  top: -10px;
  right: 15px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: #fff;
  font-size: 0.7em;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 10;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { 
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.6);
    transform: scale(1.05);
  }
}

/* Ensure consistent badge positioning */
.benefit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  position: relative;
}

.user-badge {
  background: #48bb78;
  color: white;
  padding: 0.2em 0.6em;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  flex-shrink: 0;
}

/* Enhanced Search Results Styles */
.benefits-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(79, 70, 229, 0.1);
}

.benefits-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 700;
}

.search-source-indicator {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.source-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.source-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.source-badge.local-db {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.source-badge.llm {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

.confidence-badge {
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.confidence-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.confidence-badge.high {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.confidence-badge.medium {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: white;
}

.confidence-badge.low {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

.ai-badge {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 8px;
    text-transform: uppercase;
}

.benefit-item.llm-source {
    border-left: 4px solid #2196F3;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.05) 0%, rgba(25, 118, 210, 0.05) 100%);
}

.recommendation-benefit.llm-source {
    border-left: 4px solid #2196F3;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.03) 0%, rgba(25, 118, 210, 0.03) 100%);
}

/* Dark mode for enhanced search elements */
[data-theme="dark"] .search-results-header {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(79, 70, 229, 0.2);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}

/* Dark mode for enhanced search elements */
[data-theme="dark"] .benefits-header {
    border-bottom-color: rgba(79, 70, 229, 0.2);
}

[data-theme="dark"] .benefits-header h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .benefit-item.llm-source {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(25, 118, 210, 0.1) 100%);
    border: 1px solid rgba(33, 150, 243, 0.3);
}

[data-theme="dark"] .recommendation-benefit.llm-source {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.08) 0%, rgba(25, 118, 210, 0.08) 100%);
    border: 1px solid rgba(33, 150, 243, 0.2);
}

/* Mobile responsive design for benefits header */
@media (max-width: 768px) {
    .benefits-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .benefits-header h3 {
        font-size: 1.2rem;
    }
    
    .search-source-indicator {
        gap: 6px;
    }
    
    .source-badge {
        padding: 3px 8px;
        font-size: 10px;
    }
    
    .confidence-badge {
        padding: 3px 6px;
        font-size: 9px;
    }
}

/* LLM Search Results Panel Styles */
.llm-search-panel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--result-bg);
    color: var(--text-primary);
}

.llm-search-panel .panel-header {
    display: flex;
    flex-direction: row;
    font-weight: bold;
    color: var(--text-secondary);
}

.llm-search-panel .panel-content {
    display: flex;
    flex-direction: row;
}

.llm-search-panel .panel-column {
    flex: 1;
    padding: 0.5rem;
    border-right: 1px solid var(--border-color);
    white-space: pre-wrap;
    color: var(--text-primary);
    background: var(--input-bg);
    border-radius: 4px;
    margin-right: 0.5rem;
}

.llm-search-panel .panel-column:last-child {
    border-right: none;
    margin-right: 0;
}

.llm-search-panel .panel-column em {
    color: var(--text-muted);
    font-style: italic;
}

/* Single column layout for regular users */
.llm-search-panel .panel-column.single-column {
    flex: 1;
    margin-right: 0;
    max-width: 100%;
}

/* Dark mode support for LLM panel */
[data-theme="dark"] .llm-search-panel {
    background: var(--result-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .llm-search-panel .panel-column {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* Debug Information Styles for Admin Users */
.debug-info-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.debug-info-section h4 {
    margin: 0 0 12px 0;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.debug-info-section .provider-badge,
.debug-info-section .conversation-type {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    margin-right: 8px;
}

.debug-info-section .prompt-details,
.debug-info-section .query-details,
.debug-info-section .reasoning-details {
    margin: 8px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    border-radius: 8px;
    padding: 12px;
}

.debug-info-section .prompt-details {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    color: #1565c0;
}

.debug-info-section .query-details {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #495057;
}

.debug-info-section .reasoning-details {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.debug-info-section .prompt-content,
.debug-info-section .query-content {
    background: white;
    padding: 10px;
    border-radius: 4px;
    border-left: 3px solid #2196F3;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    line-height: 1.4;
    margin-top: 6px;
}

.debug-info-section .query-content {
    border-left-color: #007bff;
    padding: 8px;
}

.debug-info-section .reasoning-list {
    margin-top: 6px;
}

.debug-info-section .reasoning-list div {
    margin: 2px 0;
    font-size: 0.8em;
}

/* Dark mode for debug information */
[data-theme="dark"] .debug-info-section {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 1px solid #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .debug-info-section h4 {
    color: #e2e8f0;
}

[data-theme="dark"] .debug-info-section .prompt-details {
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    color: #90caf9;
}

[data-theme="dark"] .debug-info-section .query-details {
    background: rgba(108, 117, 125, 0.1);
    border: 1px solid rgba(108, 117, 125, 0.3);
    color: #adb5bd;
}

[data-theme="dark"] .debug-info-section .reasoning-details {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffd54f;
}

[data-theme="dark"] .debug-info-section .prompt-content,
[data-theme="dark"] .debug-info-section .query-content {
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.site-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.5em auto;
}

@media (max-width: 600px) {
  .site-logo {
    width: 56px;
    height: 56px;
    margin-bottom: 0.25em;
  }
}

#welcomeSection {
  padding: 1rem 2rem;
  margin-top: 0.5rem;
  width: 100%;
  max-width: 800px;
  text-align: center;
}

.popular-searches-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  color: var(--text-primary);
}
#welcomeSection h2 {
  background: linear-gradient(90deg, #3b82f6 30%, #06b6d4 100%);
  color: #fff;
  border-radius: 12px;
  padding: 0.5em 1em;
  margin-bottom: 0.7em;
  font-size: 2rem;
  font-weight: 700;
  display: inline-block;
  box-shadow: 0 2px 8px 0 rgba(59, 130, 246, 0.10);
  letter-spacing: 0.5px;
}
#welcomeSection strong {
  color: #5a9fd4;
  font-size: 1.1em;
  letter-spacing: 0.2px;
}
@keyframes fadeInWelcome {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dark mode support for welcome section */
[data-theme="dark"] #welcomeSection {
}

[data-theme="dark"] #welcomeSection h2 {
  background: linear-gradient(90deg, #667eea 30%, #764ba2 100%);
  color: #fff;
  box-shadow: 0 2px 8px 0 rgba(102, 126, 234, 0.20);
}

[data-theme="dark"] #welcomeSection strong {
  color: #90caf9;
}

.popular-search-btn {
  background: linear-gradient(90deg, var(--card-bg) 60%, rgba(102, 126, 234, 0.1) 100%);
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  padding: 0.5em 1.3em;
  margin: 0;
  font-size: 1.05em;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(102, 126, 234, 0.15);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  outline: none;
}
.popular-search-btn:hover, .popular-search-btn:focus {
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.2) 60%, rgba(118, 75, 162, 0.2) 100%);
  color: #90caf9;
  box-shadow: 0 4px 16px 0 rgba(102, 126, 234, 0.25);
}

/* Dark mode support for popular search buttons */
[data-theme="dark"] .popular-search-btn {
  background: linear-gradient(90deg, var(--card-bg) 60%, rgba(102, 126, 234, 0.1) 100%);
  border-color: var(--border-color);
  color: var(--text-secondary);
  box-shadow: 0 2px 8px 0 rgba(102, 126, 234, 0.15);
}

[data-theme="dark"] .popular-search-btn:hover,
[data-theme="dark"] .popular-search-btn:focus {
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.2) 60%, rgba(118, 75, 162, 0.2) 100%);
  color: #90caf9;
  box-shadow: 0 4px 16px 0 rgba(102, 126, 234, 0.25);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}
.logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  margin: 0;
}
.brand-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.brand-title {
  font-size: 3rem;
  color: #1C1E21;
  font-weight: 900;
  line-height: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  margin: 0;
  letter-spacing: 1.5px;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  text-shadow: 0 2px 8px rgba(59,130,246,0.07);
}

.brand-tagline {
  font-size: 0.9rem;
  color: #6B7280;
  font-weight: 400;
  line-height: 1.2;
  margin-top: -8px;
  letter-spacing: 0.5px;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  text-align: left;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .top-nav {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .nav-left {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .nav-right {
    justify-content: center;
  }
  
  .logo {
    width: 56px;
    height: 56px;
  }
  
  .brand-title {
    font-size: 2.4rem;
    height: 56px;
    line-height: 56px;
  }
  
  .brand-tagline {
    font-size: 0.8rem;
    margin-top: -6px;
  }
  
  .main-content {
    padding: 1rem;
  }
  
  .search-section {
    padding: 1.5rem;
  }
  
  #welcomeSection {
    padding: 1.5rem;
  }
}

.spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3.5px solid #cbd5e1;
  border-top: 3.5px solid #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 0.7em;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.spinner-text {
  font-size: 1.08em;
  color: #2563eb;
  font-weight: 500;
  letter-spacing: 0.2px;
  vertical-align: middle;
}


/* Dark mode text color for brand title */
[data-theme="dark"] .brand-title {
    color: #FFFFFF;
}

[data-theme="dark"] .brand-tagline {
    color: #9CA3AF;
}

/* Dark mode dropdown styles */
[data-theme="dark"] .dropdown-menu {
    background: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .dropdown-item:hover {
    background: var(--alternate-bg);
}

/* Demo Notice Styles */
.demo-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.demo-notice p {
    margin: 0.5rem 0;
    font-size: 1rem;
    line-height: 1.5;
}

.demo-notice strong {
    color: #ffd700;
}

 