#portfolioTab {
    flex-direction: row !important;
    overflow: visible;
}

#homeTab {
    padding: 5px 0 0 0 !important;
}

.home-container {
    display: flex;
    gap: 8px;
    margin-top: 0;
}

/* Home Left Sidebar */
.home-sidebar {
    width: 200px;
    background: white;
    padding: 12px;
    padding-top: 8px;
    flex-shrink: 0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sidebar-section {
    margin-bottom: 16px;
}

.sidebar-heading {
    color: #333;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e5e7eb;
    text-transform: uppercase;
}

/* Connection Stats */
.connection-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.85);
    padding: 4px 12px;
    z-index: 9999;
    border-top-right-radius: 4px;
}

.connection-status {
    display: flex;
    gap: 12px;
    align-items: center;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-icon {
    font-size: 8px;
}

.status-text {
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    font-family: monospace;
}

/* Sidebar Actions */
.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #000;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-action-btn:hover {
    background: #f5f5f5;
    transform: translateX(2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar-action-btn .action-icon {
    font-size: 16px;
}

.sidebar-action-btn .action-label {
    flex: 1;
    text-align: left;
}

/* Sidebar Queries */
.sidebar-queries {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-query-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #000;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.sidebar-query-btn:hover {
    background: #f5f5f5;
    transform: translateX(2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar-query-btn .query-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.sidebar-query-btn .query-label {
    flex: 1;
}

/* Research Sessions */
.sidebar-session-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #000;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    width: 100%;
}

.sidebar-session-btn:hover {
    background: #f5f5f5;
    transform: translateX(2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar-session-btn .session-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.sidebar-session-btn .session-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-sessions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.loading-sessions, .no-sessions {
    padding: 10px;
    text-align: center;
    color: #6b7280;
    font-size: 13px;
}

/* Home Main Content */
.home-main-content {
    flex: 1;
    padding: 12px 16px;
    padding-top: 8px;
    background: #f8f9fa;
}

.scanners-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.scanners-header h2 {
    font-size: 20px;
    color: #333;
}

.custom-scan-btn {
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-scan-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

.scanners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.scanner-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    position: relative;
}

.scanner-card.loading {
    opacity: 0.6;
    border-color: #007bff;
}

.scanner-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.scanner-card:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.scanner-card .scanner-icon {
    font-size: 28px;
    margin-bottom: 4px;
}

.scanner-card .scanner-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.scanner-card .scanner-desc {
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 0;
}

.scanner-results {
    background: white;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Welcome Card - Horizontal Layout */
.welcome-card {
    background: white;
    border-radius: 6px;
    padding: 3px 10px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.welcome-card h2 {
    font-size: 11px;
    margin-bottom: 2px;
    color: #333;
}

.welcome-card p {
    font-size: 9px;
    color: white;
    margin-bottom: 2px;
}

.welcome-steps {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.step-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 3px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.step-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.step-number {
    font-size: 12px;
}

.step-title {
    font-size: 8px;
    font-weight: 600;
    color: #333;
}

/* Old home grid styles removed - using new sidebar layout */
    border: 1px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.quick-action-card:hover {
    background: #e9ecef;
    border-color: #28a745;
    transform: translateX(4px);
}

.action-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.action-title {
    font-size: 13px;
    color: #495057;
    font-weight: 500;
}

/* Popular Queries - Compact */
.popular-queries {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.popular-queries h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.queries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.query-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.query-card:hover {
    background: #e9ecef;
    border-color: #28a745;
    transform: translateX(4px);
}

.query-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.query-text {
    font-size: 13px;
    color: #495057;
    font-weight: 500;
}

/* Coming Soon Placeholder */
.coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 60px 20px;
}

.coming-soon h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.coming-soon p {
    font-size: 18px;
    color: #6c757d;
    margin: 10px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .home-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .welcome-steps {
        flex-direction: column;
    }

    .queries-grid {
        grid-template-columns: 1fr;
    }

    .app-tabs {
        overflow-x: auto;
        gap: 3px;
        padding: 8px 10px;
    }

    .tab-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .tab-label {
        display: none;
    }

    .tab-icon {
        font-size: 20px;
    }

    .home-hero h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }
}

/* Adjust main layout for tabs */
body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

.header {
    flex-shrink: 0;
}

.app-tabs {
    flex-shrink: 0;
}

.main {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Assistant tab should fill the space */
#assistantTab .messages-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
}


/* Home Tab Styles */
.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.home-hero {
    text-align: center;
    margin-bottom: 40px;
}

.home-hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: #6c757d;
}

/* Welcome Card (New Users) */
.welcome-card {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.welcome-card h2 {
    margin-bottom: 10px;
    font-size: 32px;
}

.welcome-card > p {
    font-size: 18px;
    margin-bottom: 30px;
}

.welcome-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.step-card {
    background: white;
    color: #333;
    padding: 30px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.step-number {
    font-size: 48px;
    margin-bottom: 15px;
}

.step-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.step-desc {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
}

.step-cta {
    color: #28a745;
    font-weight: bold;
    font-size: 16px;
}

/* Dashboard Card (Returning Users) */
.dashboard-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dashboard-card h2 {
    margin-bottom: 30px;
    font-size: 28px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

.stat-subvalue {
    font-size: 14px;
    margin-top: 5px;
    color: #6c757d;
}

.stat-value.positive { color: #28a745; }
.stat-value.negative { color: #dc3545; }

.dashboard-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.dashboard-btn {
    padding: 12px 24px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.dashboard-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Market Highlights */
.market-highlights {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.market-highlights h2 {
    margin-bottom: 30px;
    font-size: 28px;
}

.market-movers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.movers-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #6c757d;
}

.movers-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mover-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.2s;
    cursor: pointer;
}

.mover-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.mover-symbol {
    font-weight: bold;
    font-size: 16px;
}

.mover-change {
    font-weight: bold;
    font-size: 16px;
}

.mover-change.positive { color: #28a745; }
.mover-change.negative { color: #dc3545; }

.view-all-btn {
    width: 100%;
    padding: 12px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.view-all-btn:hover {
    background: #ee5a52;
    transform: translateY(-2px);
}

.loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

/* Quick Actions */
.quick-actions {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.quick-actions h2 {
    margin-bottom: 30px;
    font-size: 28px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.quick-action-card {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.quick-action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.action-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.action-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.action-desc {
    font-size: 15px;
    opacity: 0.9;
}

/* Popular Queries */
.popular-queries {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.popular-queries h2 {
    margin-bottom: 30px;
    font-size: 28px;
}

.queries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.query-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.query-card:hover {
    background: #e9ecef;
    border-color: #007bff;
    transform: translateX(5px);
}

.query-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.query-text {
    font-size: 14px;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .home-hero h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .welcome-steps,
    .dashboard-stats,
    .actions-grid,
    .queries-grid {
        grid-template-columns: 1fr;
    }

    .market-movers {
        grid-template-columns: 1fr;
    }
}


/* Alert Banner */
.alert-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
    transition: opacity 0.3s ease;
}

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

.alert-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.alert-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.alert-text {
    flex: 1;
    min-width: 0;
}

.alert-title {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 2px;
}

.alert-message {
    font-size: 16px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.alert-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.alert-nav {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.alert-counter {
    font-size: 13px;
    opacity: 0.8;
    min-width: 50px;
    text-align: center;
}

/* Message Type Colors */
.alert-banner.alert-type {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.alert-banner.news-type {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.alert-banner.todo-type {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.alert-banner.market-type {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.alert-banner.economic-type {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.alert-banner.reminder-type {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}


/* Portfolio News Section */
.portfolio-news-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.portfolio-news-section .section-header {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portfolio-news-section .section-header h2 {
    font-size: 20px;
    margin: 0;
}

.refresh-news-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.2s;
}

.refresh-news-btn:hover {
    background: #f0f0f0;
    transform: rotate(180deg);
}

.refresh-news-btn:active {
    transform: rotate(360deg);
}

.news-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    align-items: center;
}

#newsSearchInput {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
}

#newsDateFilter {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    min-width: 140px;
    background: white;
}

#applyNewsFilters {
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

#applyNewsFilters:hover {
    background: #0056b3;
}

.news-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-top: 12px;
    border-top: 1px solid #dee2e6;
}

.news-pagination button {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.news-pagination button:hover:not(:disabled) {
    background: #e9ecef;
}

.news-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#newsPageInfo {
    font-size: 14px;
    color: #6c757d;
}

.news-loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.news-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    cursor: pointer;
    transition: all 0.2s;
}

.news-item:hover {
    background: #e9ecef;
    transform: translateX(3px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.news-symbol {
    font-size: 14px;
    font-weight: 700;
    color: #007bff;
    min-width: 50px;
    flex-shrink: 0;
}

.news-content {
    flex: 1;
    min-width: 0;
}

.news-headline {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sentiment-icon {
    font-size: 14px;
}

.news-snippet {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.news-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    gap: 10px;
}

.news-empty {
    text-align: center;
    padding: 30px;
    color: #6c757d;
}

.news-empty p {
    margin: 0;
}

/* Scanner Subtabs */
.scanner-subtabs {
    display: flex;
    gap: 8px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.scanner-subtab {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    color: var(--text-primary);
}

.scanner-subtab:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
}

.scanner-subtab.active {
    background: #e3f2fd;
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

/* Market News Section */
.market-news-section {
    margin-top: 20px;
}


/* Cache Badge */
.cache-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 12px;
    font-size: 11px;
    margin-left: 8px;
    font-weight: normal;
    animation: fadeIn 0.3s;
    vertical-align: middle;
}

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


/* Market Overview Widget */
.market-overview-widget {
    background: white;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.market-overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.market-overview-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.market-header-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Compact Index Values Bar */
.index-values-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    flex-wrap: wrap;
}

.index-value-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.index-label {
    font-weight: 600;
    color: #6b7280;
}

.index-val {
    font-weight: 700;
    color: #111827;
}

.index-chg {
    font-weight: 600;
    font-size: 12px;
}

.index-chg.positive {
    color: #16a34a;
}

.index-chg.negative {
    color: #dc2626;
}

.index-separator {
    color: #d1d5db;
    font-weight: 300;
}

.market-condition {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.market-condition.risk-on {
    background: #dcfce7;
    color: #166534;
}

.market-condition.risk-off {
    background: #fee2e2;
    color: #991b1b;
}

.market-condition.neutral {
    background: #f3f4f6;
    color: #4b5563;
}

.market-technical {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.market-technical.trending-up {
    background: #dbeafe;
    color: #1e40af;
}

.market-technical.trending-down {
    background: #fef3c7;
    color: #92400e;
}

.market-technical.ranging {
    background: #f3f4f6;
    color: #4b5563;
}

.market-technical.volatile {
    background: #fce7f3;
    color: #9f1239;
}

.market-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.market-status.open {
    background: #dcfce7;
    color: #166534;
}

.market-status.closed {
    background: #fee2e2;
    color: #991b1b;
}

.market-status.pre-market {
    background: #fef3c7;
    color: #92400e;
}

.market-indices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.index-card {
    background: #f9fafb;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.index-symbol {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 6px;
}

.index-price {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.index-change {
    font-size: 13px;
    font-weight: 600;
}

.index-change.positive {
    color: #16a34a;
}

.index-change.negative {
    color: #dc2626;
}

/* More Indexes Button */
.more-indexes-btn {
    width: 100%;
    padding: 10px;
    margin-top: 12px;
    background: white;
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.more-indexes-btn:hover {
    background: #f9fafb;
    border-color: #3b82f6;
    color: #3b82f6;
}

.more-indexes-btn #moreIndexesIcon {
    font-size: 16px;
    font-weight: bold;
}

/* Additional Indices Section */
.additional-indices {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.indices-section {
    margin-bottom: 16px;
}

.indices-section:last-child {
    margin-bottom: 0;
}

.indices-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px 0;
}

/* Quick Quote Search */
.quick-quote-search {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.quick-quote-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.quick-quote-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.quick-quote-btn {
    padding: 10px 20px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.quick-quote-btn:hover {
    background: #2563eb;
}

.quick-quote-result {
    background: white;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quick-quote-result .quote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.quick-quote-result .quote-symbol {
    font-size: 20px;
    font-weight: 700;
}

.quick-quote-result .quote-price {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.quick-quote-result .quote-change {
    font-size: 16px;
    font-weight: 600;
}

.quick-quote-result .quote-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.quick-quote-result .quote-detail-item {
    text-align: center;
}

.quick-quote-result .quote-detail-label {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 4px;
}

.quick-quote-result .quote-detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}
