/* CSS Variables for Light/Dark Mode */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --accent-primary: #3b82f6;
    --accent-secondary: #1e40af;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-primary: #1a202c;
    --bg-secondary: #2d3748;
    --text-primary: #f7fafc;
    --text-secondary: #cbd5e0;
    --accent-primary: #60a5fa;
    --accent-secondary: #3b82f6;
    --border-color: #4a5568;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: all 0.3s ease;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

[data-theme="dark"] .header {
    background: rgba(26, 32, 44, 0.95);
}

.mobile-menu-btn {
    display: none;
}

.nav-item-btn {
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0 1rem;
    font-weight: 500;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-brand h1 {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 1.5rem;
}

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

.auth-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-auth {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
    border: none;
}

.btn-signin {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-signin:hover {
    background: var(--bg-secondary);
}

.btn-signup {
    background: var(--accent-primary);
    color: #ffffff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.btn-signup:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
}

/* User Info Styles for Landing Page */
.user-info-landing {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-welcome {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-dashboard {
    background: var(--accent-primary);
    color: var(--text-primary);
}

.btn-dashboard:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
}

.btn-logout {
    background: #ef4444;
    color: var(--text-primary);
}

.btn-logout:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .user-info-landing {
        flex-direction: column;
        gap: 0.5rem;
    }

    .user-welcome {
        font-size: 0.8rem;
    }

    .btn-auth {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

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

.nav-links a:hover {
    color: var(--accent-primary);
}

.theme-checkbox {
    opacity: 0;
    position: absolute;
}

.theme-label {
    background-color: #111;
    width: 50px;
    height: 26px;
    border-radius: 50px;
    position: relative;
    padding: 5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s linear;
}

[data-theme="dark"] .theme-label {
    background-color: var(--accent-primary);
}

.moon {
    font-size: 12px;
}

.sun {
    font-size: 12px;
}

.ball {
    background-color: #fff;
    width: 22px;
    height: 22px;
    position: absolute;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    transition: transform 0.2s linear;
}

.theme-checkbox:checked+.theme-label .ball {
    transform: translateX(24px);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
}

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

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

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

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

/* Hero Section */
.hero {
    padding: 8rem 2rem 4rem;
    background: var(--bg-primary);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease 0.4s both;
}

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

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    animation: fadeInRight 1s ease 0.6s both;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 6rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.about-features {
    list-style: none;
}

.about-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.about-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

.about-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

/* News Section */
.news {
    padding: 6rem 0;
    background: var(--bg-secondary);
    display: block !important;
    visibility: visible !important;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-primary);
    opacity: 1;
    visibility: visible;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.news-source {
    font-weight: 600;
    color: var(--accent-primary);
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.news-description {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.news-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.news-link:hover {
    text-decoration: underline;
}

.news-loading {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    grid-column: 1 / -1;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: var(--accent-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-column h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

.fade-in {
    animation: fadeInUp 1s ease;
}

/* Newsletter Section */
.newsletter-section {
    padding: 4rem 0;
    background: var(--bg-primary);
    text-align: center;
}

.newsletter-content h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 700;
}

.newsletter-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    min-width: 300px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.newsletter-form button {
    padding: 12px 24px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

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

/* Add Stock Section */
.add-ticker-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
    text-align: center;
}

.add-ticker-section h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 700;
}

.add-ticker-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.add-ticker-form input {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    min-width: 250px;
    background: var(--bg-primary);
    color: var(--text-primary);
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.add-ticker-form input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.add-ticker-form button {
    padding: 12px 24px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.add-ticker-form button:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

/* Stock Portfolio Section */
.stocks-section {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.stocks-section h2 {
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 700;
}

.stocks-section p {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.stocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.stock-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stock-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stock-card.removing {
    opacity: 0.5;
    transform: scale(0.9);
}

.remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.remove-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.stock-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--accent-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    transition: all 0.3s ease;
}

.stock-logo:hover {
    transform: scale(1.05);
}

.stock-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.stock-card h4 {
    color: var(--text-primary);
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.stock-card h4:hover {
    color: var(--accent-primary);
}

.stock-card p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.stock-card p:hover {
    color: var(--text-primary);
}

/* Message Styles */
.message {
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    margin: 0.5rem 0;
    transition: all 0.3s ease;
}

.message.success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* CSS Variables for Colors */
:root {
    --success-color: #16a34a;
    --error-color: #dc2626;
    --primary-color: var(--accent-primary);
}

[data-theme="dark"] {
    --success-color: #22c55e;
    --error-color: #ef4444;
}

/* Loading State */
.loading {
    text-align: center;
    color: var(--text-secondary);
    grid-column: 1 / -1;
    padding: 2rem;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {

    .hero-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    /* Mobile Menu Buttons */
    .mobile-menu-btn {
        display: block;
        background: transparent;
        border: none;
        color: var(--text-primary);
        cursor: pointer;
        z-index: 1001;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
        align-items: center;
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 0.5rem 0;
        text-align: center;
    }

    .nav-item-btn {
        padding: 0.5rem 0;
        width: 100%;
        text-align: center;
        font-size: 1.1rem;
    }

    .auth-buttons {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-auth {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: center;
    }

    .newsletter-form,
    .add-ticker-form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form input,
    .add-ticker-form input {
        min-width: 280px;
        width: 100%;
        max-width: 400px;
    }

    .stocks-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
        padding: 0 1rem;
    }

    .stock-card {
        padding: 1rem;
    }

    .stock-logo {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Landing Search Styles */
.hero-search-container {
    max-width: 600px;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.3s both;
    position: relative;
    z-index: 20;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.search-icon {
    color: var(--text-secondary);
    margin-right: 0.75rem;
}

#landingSearchInput {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: var(--text-primary);
    padding: 0.5rem 0;
    outline: none;
}

#landingSearchBtn {
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

#landingSearchBtn:hover {
    background: var(--accent-secondary);
    transform: scale(1.05);
}

/* Quick Tickers */
.quick-tickers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.quick-tickers span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.ticker-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* Quote Section */
.quote-container {
    background: var(--bg-secondary);
    padding: 4rem 0;
    margin: 0;
    width: 100%;
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    animation: fadeInUp 1s ease 0.6s both;
    transition: all 0.3s ease;
}

.quote-header {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.text-green {
    color: #4ade80;
    /* Keep accent green */
}

.text-grey {
    color: var(--text-secondary);
    font-size: 1.25rem;
}

.quote-content {
    position: relative;
    padding: 0 1rem;
    margin-bottom: 1.5rem;
}

.quote-icon {
    color: var(--text-secondary);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.quote-text {
    font-family: 'Georgia', serif;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-style: italic;
}

.quote-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.author-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.author-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Hero Section with Premium Gradient */
.hero {
    /* Enhanced background with overrides - Stronger visibility for Light Mode */
    background: radial-gradient(circle at 50% 30%, rgba(59, 130, 246, 0.15) 0%, rgba(99, 102, 241, 0.1) 40%, rgba(255, 255, 255, 0) 80%), var(--bg-primary) !important;
}

[data-theme="dark"] .hero {
    /* Dark Mode Void with Glow */
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, rgba(15, 23, 42, 0) 70%), var(--bg-primary) !important;
}

/* Helper Text */
.hero-search-helper {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.02em;
    opacity: 0.8;
}

/* Search Dropdown */
.search-box {
    position: relative;
    /* For dropdown positioning */
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: none;
    text-align: left;
}

.search-dropdown.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

.search-item {
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background: var(--bg-secondary);
}

.item-symbol {
    font-weight: 700;
    color: var(--text-primary);
}

.item-name {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Scrollbar for dropdown */
.search-dropdown::-webkit-scrollbar {
    width: 8px;
}

.search-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.search-dropdown::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 4px;
}