@media (max-width: 600px) {
    .welcome-title {
        font-size: 1.4rem !important;
        padding: 0.5rem 0.2rem !important;
        gap: 0.5rem !important;
    }
    .welcome-content {
        padding: 1.2rem 0.5rem !important;
    }
}
/* Dashboard Styles */
.dashboard-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
}

/* Welcome Section */
.welcome-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 1rem;
}

.welcome-content {
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.welcome-title i {
    color: var(--primary-color);
}

.welcome-subtitle {
    font-size: 1.2rem;
    color: var(--light-text-color);
    margin: 0;
    font-weight: 400;
}

.dashboard-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-title i {
    color: var(--primary-color);
}

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

.symbol-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.symbol-input {
    padding: 8px 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-dark);
    font-size: 14px;
    width: 150px;
    transition: all 0.2s ease;
}

.symbol-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
}

.symbol-input::placeholder {
    color: rgba(102, 126, 234, 0.7);
}

.header-select {
    padding: 8px 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-dark);
    font-size: 14px;
    min-width: 120px;
    transition: all 0.2s ease;
}

.header-select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

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

.header-btn {
    padding: 8px 12px;
    min-width: 36px;
    min-height: 36px;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    background: rgba(102, 126, 234, 0.7);
    color: white;
}

.header-btn:hover {
    transform: translateY(-1px);
    background: var(--primary-color);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.header-btn.logout-btn {
    background: rgba(229, 62, 62, 0.7);
}

.header-btn.logout-btn:hover {
    background: var(--danger-color);
    box-shadow: 0 2px 4px rgba(229, 62, 62, 0.3);
}

.dashboard-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 120px);
}

/* Reduce spacing for main app views */
.dashboard-container:not(.dashboard-grid) .dashboard-main {
    padding-top: 1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto auto;
    gap: 2rem;
}

.dashboard-widget {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.welcome-section {
    grid-column: 1 / -1;
    grid-row: 1;
}

.dashboard-widget:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

.dashboard-widget:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

.dashboard-widget:nth-child(4) {
    grid-column: 2;
    grid-row: 3;
}

.dashboard-widget:nth-child(5) {
    grid-column: 1;
    grid-row: 3;
}

.smart-screens-widget {
    grid-column: 1;
    grid-row: 3;
}

.quick-actions-widget {
    grid-column: 1;
    grid-row: 5;
}

.widget-header {
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-title i {
    color: var(--primary-color);
}

.widget-actions {
    display: flex;
    gap: 0.5rem;
}

.widget-action-btn {
    padding: 6px 12px;
    min-height: 32px;
    font-size: 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    background: rgba(102, 126, 234, 0.7);
    color: white;
}

.widget-action-btn:hover {
    transform: translateY(-1px);
    background: var(--primary-color);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.widget-action-btn.primary {
    background: rgba(56, 161, 105, 0.7);
}

.widget-action-btn.primary:hover {
    background: var(--success-color);
    box-shadow: 0 2px 4px rgba(56, 161, 105, 0.3);
}

.widget-content {
    padding: 2rem;
}

/* Top Lists Styles */
.top-lists-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.top-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.top-list-item:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
}

.top-list-item:hover .top-list-meta {
    color: rgba(255, 255, 255, 0.8);
}

.top-list-item:hover .top-list-icon {
    color: white;
}

.top-list-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.top-list-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.top-list-meta {
    font-size: 0.8rem;
    opacity: 0.7;
}

.top-list-icon {
    font-size: 1.2rem;
    opacity: 0.6;
}



/* Top Rated Styles */
.top-rated-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.top-rated-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.top-rated-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.top-rated-symbol {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    min-width: 60px;
    text-align: center;
}

.top-rated-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.top-rated-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

.top-rated-meta {
    font-size: 0.8rem;
    color: var(--light-text-color);
}

.top-rated-meta .rating {
    background: #10b981;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.top-rated-prices {
    font-size: 0.8rem;
    color: var(--light-text-color);
}

.top-rated-prices .current {
    font-weight: 600;
    color: var(--text-color);
}

.top-rated-prices .target {
    color: #6366f1;
    font-weight: 600;
}

.top-rated-prices .upside {
    font-weight: 700;
}

.top-rated-prices .upside.positive {
    color: #10b981;
}

/* Stock Lists Styles */
.search-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--bg-color);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text-color);
}

.stock-lists-container {
    max-height: 60vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stock-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stock-list-item:hover {
    background: rgba(248, 249, 250, 0.8);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.stock-list-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.stock-list-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
}

.stock-list-meta {
    font-size: 0.85rem;
    color: var(--light-text-color);
}

.stock-list-actions {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.action-divider {
    width: 1px;
    height: 20px;
    background: var(--border-color);
    margin: 0 0.25rem;
    opacity: 0.5;
}

.view-mode-btn {
    padding: 4px 6px;
    min-width: 24px;
    min-height: 24px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.view-mode-btn:hover {
    transform: translateY(-1px);
    color: white;
}

.view-mode-btn.multi-chart {
    background: rgba(56, 161, 105, 0.7);
    color: white;
}

.view-mode-btn.multi-chart:hover {
    background: var(--success-color);
    box-shadow: 0 2px 4px rgba(56, 161, 105, 0.3);
}

.view-mode-btn.mini-charts {
    background: rgba(102, 126, 234, 0.7);
    color: white;
}

.view-mode-btn.mini-charts:hover {
    background: var(--primary-color);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.view-mode-btn.list-mode {
    background: rgba(214, 158, 46, 0.7);
    color: white;
}

.view-mode-btn.list-mode:hover {
    background: var(--warning-color);
    box-shadow: 0 2px 4px rgba(214, 158, 46, 0.3);
}

.list-action-btn {
    padding: 4px 6px;
    min-width: 24px;
    min-height: 24px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    background: rgba(102, 126, 234, 0.7);
    color: white;
}

.list-action-btn:hover {
    transform: translateY(-1px);
    background: var(--primary-color);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    color: white;
}

.list-action-btn.delete {
    background: rgba(229, 62, 62, 0.7);
}

.list-action-btn.delete:hover {
    background: var(--danger-color);
    box-shadow: 0 2px 4px rgba(229, 62, 62, 0.3);
}

.list-action-btn.disabled {
    background: rgba(156, 163, 175, 0.5);
    cursor: not-allowed;
    opacity: 0.5;
}

.list-action-btn.disabled:hover {
    background: rgba(156, 163, 175, 0.5);
    transform: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Auto List Styles */
.stock-list-item.auto-list {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
}

.stock-list-item.auto-list:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-color: #d97706;
    color: white;
}

.auto-badge {
    background: #f59e0b;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quick Actions Styles */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-action-tile {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.quick-action-tile:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.quick-action-tile-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.quick-action-tile:hover .quick-action-tile-icon {
    color: white;
}

.quick-action-tile-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.quick-action-tile:hover .quick-action-tile-name {
    color: white;
}

.quick-action-tile-desc {
    font-size: 0.85rem;
    color: var(--light-text-color);
    line-height: 1.3;
}

.quick-action-tile:hover .quick-action-tile-desc {
    color: rgba(255, 255, 255, 0.9);
}

.quick-action-btn {
    background: rgba(102, 126, 234, 0.7);
    border: none;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quick-action-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.quick-action-btn:nth-child(1) {
    background: rgba(56, 161, 105, 0.7);
}

.quick-action-btn:nth-child(1):hover {
    background: var(--success-color);
    box-shadow: 0 4px 8px rgba(56, 161, 105, 0.3);
}

.quick-action-btn:nth-child(2) {
    background: rgba(214, 158, 46, 0.7);
}

.quick-action-btn:nth-child(2):hover {
    background: var(--warning-color);
    box-shadow: 0 4px 8px rgba(214, 158, 46, 0.3);
}

.quick-action-btn:nth-child(3) {
    background: rgba(102, 126, 234, 0.7);
}

.quick-action-btn:nth-child(3):hover {
    background: var(--primary-color);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.quick-action-btn:nth-child(4) {
    background: rgba(156, 163, 175, 0.7);
}

.quick-action-btn:nth-child(4):hover {
    background: #6b7280;
    box-shadow: 0 4px 8px rgba(156, 163, 175, 0.3);
}

.quick-action-btn i {
    font-size: 1.5rem;
    opacity: 0.8;
}

.quick-action-btn span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Loading Styles */
.loading-placeholder, .empty-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    color: var(--light-text-color);
    text-align: center;
}

.empty-message i {
    font-size: 2rem;
    opacity: 0.5;
    color: var(--primary-color);
}

.empty-message p {
    margin: 0;
    font-weight: 500;
    color: var(--text-color);
}

.empty-message small {
    margin: 0;
    opacity: 0.7;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    background: white;
    padding: 2rem 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

.loading-content i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto auto auto auto;
    }
    
    .dashboard-widget {
        grid-column: 1 !important;
    }
    
    .welcome-section {
        grid-row: 1;
    }
    
    .dashboard-widget:nth-child(2) {
        grid-row: 2;
    }
    
    .dashboard-widget:nth-child(3) {
        grid-row: 3;
    }
    
    .dashboard-widget:nth-child(4) {
        grid-row: 5;
    }
    
    .dashboard-widget:nth-child(5) {
        grid-row: 4;
    }
    
    .smart-screens-widget {
        grid-row: 6;
    }
    
    .quick-actions-widget {
        grid-row: 7;
    }
}

@media (max-width: 768px) {
    .dashboard-main {
        padding: 1rem;
        gap: 1rem;
    }
    
    .header-content {
        padding: 1rem;
    }
    
    .widget-content {
        padding: 1rem;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .stock-list-actions {
        flex-wrap: wrap;
    }
    /* Responsive header icons */
    .header-right {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: flex-end;
    }
    .header-btn {
        min-width: 44px;
        min-height: 44px;
        font-size: 1.3rem;
        padding: 8px;
        margin: 2px 0;
    }
    .header-btn i {
        font-size: 1.3em;
    }
    .symbol-search {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    .symbol-input {
        width: 100%;
        min-width: 0;
    }
    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .header-left {
        justify-content: center;
        margin-bottom: 0.5rem;
    }
}

/* Top Rated Scrollable Container */
.top-rated-scrollable {
    max-height: 500px;
    overflow-y: auto;
}

.top-rated-compact-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem;
    background: var(--bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    cursor: pointer;
}

.top-rated-compact-item:hover {
    background: rgba(102, 126, 234, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.top-rated-compact-item:last-child {
    margin-bottom: 0;
}

.top-rated-date {
    font-size: 0.75rem;
    color: var(--light-text-color);
    margin-bottom: 0.25rem;
    opacity: 0.8;
}

.top-rated-row-1 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.top-rated-row-1 .company-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

.top-rated-row-1 .symbol {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.canadian-flag {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-left: 0.2rem;
}

.top-rated-row-1 .rating-label {
    font-size: 0.8rem;
    color: var(--success-color);
    background: rgba(56, 161, 105, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-left: auto;
}

.top-rated-row-2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.top-rated-row-2 .current-price {
    color: var(--light-text-color);
}

.top-rated-row-2 .target-price {
    color: var(--light-text-color);
}

.top-rated-row-2 .upside {
    margin-left: auto;
    font-weight: 500;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.top-rated-row-3 {
    margin-top: 0.25rem;
}

.top-rated-row-3 .firm-name {
    font-size: 0.75rem;
    color: var(--light-text-color);
    font-style: italic;
    opacity: 0.8;
}

.top-rated-symbol-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
    flex: 1;
}

.top-rated-upside-compact {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(248, 249, 250, 0.8);
}

.top-rated-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.top-rated-item:hover {
    background: rgba(248, 249, 250, 0.8);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.top-rated-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.top-rated-symbol {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
}

.top-rated-prices {
    font-size: 0.85rem;
    color: var(--light-text-color);
}

.upside-positive {
    color: var(--success-color);
    background: rgba(56, 161, 105, 0.1);
}

.upside-negative {
    color: var(--danger-color);
    background: rgba(229, 62, 62, 0.1);
}

/* Smart Screens Styles */
.smart-screens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.smart-screen-item {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.smart-screen-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.screen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.screen-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.predefined-badge {
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.screen-dates {
    font-size: 0.65rem;
    margin-top: 0.3rem;
    opacity: 0.7;
    line-height: 1.2;
}

.screen-dates div {
    margin-bottom: 0.1rem;
}

.compact-screen-card .screen-dates {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 0.3rem;
    margin-top: 0.5rem;
}

/* Mini Chart Tooltip */
.mini-chart-tooltip {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 8px;
    z-index: 10000;
    pointer-events: none;
}

.mini-chart-header {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 4px;
    text-align: center;
}

.mini-chart-img {
    display: block;
    max-width: 400px;
    height: auto;
    border-radius: 4px;
}

.screen-description {
    font-size: 0.85rem;
    color: var(--light-text-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.screen-lists {
    margin-bottom: 1rem;
}

.screen-lists label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.screen-list-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.8rem;
    max-height: 80px;
    overflow-y: auto;
}

.screen-actions {
    display: flex;
    gap: 0.5rem;
}

.run-screen-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.run-screen-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

/* Screen Results Modal */
.screen-results-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.screen-results-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 90vw;
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.screen-results-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.screen-results-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--light-text-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: var(--bg-color);
    color: var(--text-color);
}

.screen-results-body {
    padding: 2rem;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.screen-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.action-btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.action-btn.secondary {
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.action-btn.secondary:hover {
    background: var(--border-color);
}

.results-table-container {
    flex: 1;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table th,
.results-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.results-table th {
    background: var(--bg-color);
    font-weight: 600;
    color: var(--text-color);
    position: sticky;
    top: 0;
}

.results-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.results-table th.sortable:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
}

.results-table th.sortable i {
    margin-left: 0.25rem;
    opacity: 0.6;
}

.results-table th.sortable:hover i {
    opacity: 1;
}

.results-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

.symbol-cell {
    font-weight: 600;
}

.symbol-link {
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: none;
}

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

.mini-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mini-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.no-results,
.error-message {
    padding: 2rem;
    text-align: center;
    color: var(--light-text-color);
}

.error-message {
    color: var(--danger-color);
}

/* Custom Scrollbar */
.stock-lists-container::-webkit-scrollbar,
.top-rated-scrollable::-webkit-scrollbar,
.results-table-container::-webkit-scrollbar {
    width: 6px;
}

.stock-lists-container::-webkit-scrollbar-track,
.top-rated-scrollable::-webkit-scrollbar-track,
.results-table-container::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 3px;
}

.stock-lists-container::-webkit-scrollbar-thumb,
.top-rated-scrollable::-webkit-scrollbar-thumb,
.results-table-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.stock-lists-container::-webkit-scrollbar-thumb:hover,
.top-rated-scrollable::-webkit-scrollbar-thumb:hover,
.results-table-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
