:root {
    --primary: #00b04f;
    --primary-dark: #009540;
    --secondary: #2e5bff;
    --light: #f8f9fa;
    --dark: #1a1a1a;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --border: #dee2e6;
    --text: #333333;
    --text-light: #6c757d;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.1);
    --success: #00b04f;
    --danger: #ff4d4f;
    --warning: #ffc107;
    --binance-yellow: #f0b90b;
    --binance-dark: #1e2026;
}
html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden; /* Prevents horizontal scrolling */
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.threshold-presets {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.threshold-preset {
    flex: 1;
    padding: 6px 8px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    text-align: center;
    transition: all 0.2s;
}

.threshold-preset:hover {
    background: #e0e0e0;
}

.threshold-preset.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
    font-weight: bold;
}
body {
    background-color: var(--white);
    color: var(--text);
    line-height: 1.6;
    transition: all 0.3s ease;
}

body.dark-theme {
    background-color: #0a0a0a;
    color: #ffffff;
}

.container {
    width: 100% !important;
    max-width: 100% !important; /* Remove max-width restriction */
    margin: 0 auto;
    padding: 0 15px;
    /* Or if you want some padding on sides: */
    /* padding: 0 15px; */
}

/* Header Styles */
.main-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    position: relative;
    z-index: 1000;
}

.dark-theme .main-header {
    background: #1a1a1a;
    border-bottom-color: #333;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo span {
    color: var(--dark);
}

.dark-theme .logo span {
    color: #ffffff;
}

/* Navigation Styles */
.nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    padding: 8px 12px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.dark-theme .nav-menu a {
    color: #ffffff;
}

.dark-theme .nav-menu a:hover,
.dark-theme .nav-menu a.active {
    color: var(--primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text);
    padding: 10px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    z-index: 1002;
}

.dark-theme .menu-toggle {
    color: #ffffff;
}
/* Cryptocurrency Ticker - Simple Color Coding */
.crypto-ticker {
    background: rgba(0, 20, 0, 0.9);
    border-bottom: 1px solid #00FF00;
    padding: 10px 0;
    overflow: hidden;
}

.ticker-container {
    display: flex;
    gap: 40px;
    animation: tickerScroll 30s linear infinite;
    white-space: nowrap;
    padding: 5px 0;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
}

/* Cyan for cryptocurrency symbols */
.ticker-symbol {
    color: #00FFFF !important;
    font-weight: 600;
}

/* Green for prices */
.ticker-price {
    color: #00FF00 !important;
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
}

.ticker-change {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Green for positive changes */
.ticker-change.positive {
    color: #00FF00 !important;
    background: rgba(0, 255, 0, 0.1);
}

/* Red for negative changes */
.ticker-change.negative {
    color: #FF0000 !important;
    background: rgba(255, 0, 0, 0.1);
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Pause ticker on hover */
.crypto-ticker:hover .ticker-container {
    animation-play-state: paused;
}
/* ========== MOBILE STYLES ========== */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 25px 25px;
        transition: left 0.3s ease-in-out;
        z-index: 1001;
        overflow-y: auto;
        box-shadow: 2px 0 15px rgba(0,0,0,0.1);
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 10px;
        font-size: 16px;
        width: 100%;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .dark-theme .nav-menu {
        background: #1a1a1a;
        border-color: #333;
    }
    
    .dark-theme .nav-menu a {
        color: #ffffff;
    }
    
    /* Overlay when menu is open */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 280px;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: -1;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .nav-menu {
        width: 100%;
    }
    
    .nav-menu.active::before {
        left: 100%;
    }
}

/* Crypto Ticker Styles */
.crypto-ticker {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.dark-theme .crypto-ticker {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-bottom-color: #333;
}
/* Signal Chart Container */
#signal-chart-container {
    width: 100%;
    height: 480px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
    border: 1px solid #e0e0e0;
}

body.dark-theme #signal-chart-container {
    border-color: #333;
}

/* Scroll Controls */
.scroll-controls {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    justify-content: center;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
}

/* Signal Period Selector */
#signal-period {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: white;
    font-size: 14px;
}

body.dark-theme #signal-period {
    background: #333;
    border-color: #555;
    color: white;
}

/* Signal Filters */
.signal-filters {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin: 15px 0;
}

body.dark-theme .signal-filters {
    background: #2a2a2a;
}

/* Threshold Control */
.threshold-control {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
}

body.dark-theme .threshold-control {
    background: #2a2a2a;
}

.threshold-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
}

.threshold-slider-container {
    position: relative;
    padding: 10px 0;
}
/* Add to your CSS */
.threshold-preset.active-preset {
    background: linear-gradient(135deg, #4CAF50, #2E7D32) !important;
    color: white !important;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
    border-color: #4CAF50 !important;
}

.threshold-preset {
    transition: all 0.2s ease;
}

.threshold-preset:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
#threshold-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #4CAF50, #FFC107, #FF5722);
    border-radius: 3px;
    outline: none;
}

#threshold-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2962ff;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.threshold-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

body.dark-theme .threshold-labels {
    color: #aaa;
}

/* Enhanced Panels */
.enhanced-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.trading-journal, .correlation-tracker, .price-levels {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    min-height: 150px;
}

body.dark-theme .trading-journal,
body.dark-theme .correlation-tracker,
body.dark-theme .price-levels {
    background: #2a2a2a;
}

/* Signal Statistics */
#signal-accuracy-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4CAF50;
    color: white;
    margin-right: 10px;
}
.ticker-container {
    display: flex;
    animation: ticker-scroll 60s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    display: flex;
    align-items: center;
    padding: 0 25px;
    border-right: 1px solid rgba(255,255,255,0.2);
    font-size: 14px;
    font-weight: 600;
}

.ticker-symbol {
    margin-right: 8px;
    font-weight: 700;
}

.ticker-price {
    margin-right: 8px;
}

.ticker-change {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
}

.ticker-change.positive {
    background: rgba(0, 176, 79, 0.2);
    color: #00ff00;
}

.ticker-change.negative {
    background: rgba(255, 77, 79, 0.2);
    color: #ff4444;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.crypto-ticker:hover .ticker-container {
    animation-play-state: paused;
}

/* Dashboard Styles */
.dashboard {
    padding: 20px 0;
    min-height: 80vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dashboard-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.dark-theme .dashboard-title {
    color: #00ff00;
}

.dashboard-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: #2545d8;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.dashboard-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.dark-theme .dashboard-card {
    background: #1a1a1a;
    border-color: #333;
    color: #ffffff;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.dark-theme .card-title {
    color: #ffffff;
}

.card-controls {
    display: flex;
    gap: 10px;
}

select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--white);
    color: var(--text);
}

.dark-theme select {
    background: #2d2d2d;
    border-color: #444;
    color: #ffffff;
}

.chart-container {
    width: 100%;
    height: 400px;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.dark-theme .chart-container {
    background: #0a0a0a;
    border-color: #333;
}

/* Prediction Header Styles */
.prediction-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: var(--light);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.dark-theme .prediction-header {
    background: #2d2d2d;
}

.prediction-direction {
    display: flex;
    align-items: center;
    gap: 10px;
}

.direction-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success);
    color: white;
    font-size: 18px;
}

.direction-indicator.down {
    background: var(--danger);
    transform: rotate(180deg);
}

.direction-text {
    display: flex;
    flex-direction: column;
}

.direction-label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 2px;
}

.dark-theme .direction-label {
    color: #cccccc;
}

.direction-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--success);
}

.direction-value.down {
    color: var(--danger);
}

.prediction-accuracy,
.prediction-timeline {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.accuracy-label,
.timeline-label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.dark-theme .accuracy-label,
.dark-theme .timeline-label {
    color: #cccccc;
}

.accuracy-value,
.timeline-value {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.accuracy-bar,
.timeline-progress {
    height: 6px;
    background: var(--gray-light);
    border-radius: 3px;
    overflow: hidden;
}

.dark-theme .accuracy-bar,
.dark-theme .timeline-progress {
    background: #444;
}

.accuracy-fill,
.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.progress-fill {
    background: var(--secondary);
}

/* Model Information Panel */
.model-info-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 12px 15px;
    background: var(--light);
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
}

.dark-theme .model-info-panel {
    background: #2d2d2d;
}

.model-details {
    display: flex;
    flex-direction: column;
}

.model-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 3px;
}

.model-description {
    font-size: 12px;
    color: var(--text-light);
}

.dark-theme .model-description {
    color: #cccccc;
}

.model-stats {
    display: flex;
    gap: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.stat-label {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 2px;
}

.dark-theme .stat-label {
    color: #cccccc;
}

.stat-value {
    font-size: 13px;
    font-weight: 600;
}

/* Prediction Timer Styles */
.prediction-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
    padding: 12px;
    background: var(--light);
    border-radius: 8px;
    border-left: 4px solid var(--warning);
}

.dark-theme .prediction-timer {
    background: #2d2d2d;
}

.timer-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.dark-theme .timer-label {
    color: #cccccc;
}

.timer-display {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--warning);
    margin-bottom: 5px;
}

.timer-status {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
}

.dark-theme .timer-status {
    color: #cccccc;
}

.timer-status.running {
    color: var(--success);
    font-weight: 700;
}

.timer-status.stopped {
    color: var(--warning);
}

.timer-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.timer-status.running::before {
    background: var(--success);
    animation: pulse 1s infinite;
}

.timer-status.stopped::before {
    background: var(--warning);
}

.timer-controls {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.timer-controls .btn {
    min-height: auto;
}

.timer-update-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding: 6px 0;
    border-top: 1px solid var(--border);
}

.dark-theme .timer-update-info {
    border-top-color: #444;
}

.update-label {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 600;
}

.update-time {
    font-size: 11px;
    color: var(--text);
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.dark-theme .update-time {
    color: #ffffff;
}

/* Prediction Info Styles */
.prediction-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.info-card {
    background: var(--light);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.dark-theme .info-card {
    background: #2d2d2d;
}

.info-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.dark-theme .info-label {
    color: #cccccc;
}

.info-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.dark-theme .info-value {
    color: #ffffff;
}

.info-value.positive {
    color: var(--success);
}

.info-value.negative {
    color: var(--danger);
}

.confidence-bar {
    height: 8px;
    background: var(--gray-light);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.dark-theme .confidence-bar {
    background: #444;
}

.confidence-level {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Model Performance */
.model-performance {
    margin-top: 20px;
    padding: 15px;
    background: var(--light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dark-theme .model-performance {
    background: #2d2d2d;
}

.performance-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.dark-theme .performance-title {
    color: #ffffff;
}

.performance-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
}

.metric-label {
    font-size: 14px;
    color: var(--text-light);
}

.dark-theme .metric-label {
    color: #cccccc;
}

.metric-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.dark-theme .metric-value {
    color: #ffffff;
}

/* Toast Styles */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--dark);
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Status Indicator */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

.status-dot.learning {
    background: var(--warning);
}

.status-dot.error {
    background: var(--danger);
}

.status-dot.offline {
    background: var(--gray);
    animation: none;
}

/* Footer Styles */
footer {
    background: var(--dark);
    color: white;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.dark-theme footer {
    background: #000000;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #b0b0b0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: white;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #b0b0b0;
    font-size: 14px;
}

/* Template Styles */
.template-section {
    background: var(--light);
    padding: 40px 0;
    margin: 30px 0;
}

.dark-theme .template-section {
    background: #1a1a1a;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text);
}

.dark-theme .section-title {
    color: #ffffff;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.template-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.dark-theme .template-card {
    background: #2d2d2d;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.template-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
}

.template-card h3 {
    margin-bottom: 15px;
    color: var(--text);
}

.dark-theme .template-card h3 {
    color: #ffffff;
}

/* Dashboard Controls Panel */
.dashboard-controls-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px;
    background: var(--light);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.dark-theme .dashboard-controls-panel {
    background: #2d2d2d;
}

.control-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Card Header with Controls */
.card-header .dashboard-controls-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light);
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    margin-top: -16px;
}

.dark-theme .card-header .dashboard-controls-panel {
    background: #2d2d2d;
}

.control-buttons .btn {
    padding: 8px 12px;
    font-size: 12px;
    min-width: auto;
    white-space: nowrap;
}

.control-buttons .btn i {
    margin-right: 4px;
    font-size: 11px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    white-space: nowrap;
}

.status-dot {
    width: 6px;
    height: 6px;
}

/* Animations */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .prediction-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .template-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .card-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .card-header .dashboard-controls-panel {
        max-width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .dashboard-controls {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .btn {
        padding: 12px 16px;
        font-size: 14px;
        min-width: 120px;
    }
    
    .card-controls {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .card-controls select {
        width: 100%;
        font-size: 14px;
    }
    
    .chart-container {
        height: 300px !important;
    }
    
    .prediction-header {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }
    
    .model-info-panel {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .model-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .prediction-info {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .info-card {
        padding: 12px;
    }
    
    .performance-metrics {
        grid-template-columns: 1fr;
    }
    
    .template-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .dashboard-controls-panel {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .control-buttons {
        justify-content: space-between;
    }
    
    .control-buttons .btn {
        flex: 1;
        min-width: 0;
    }
    
    .card-header .dashboard-controls-panel {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .card-header .control-buttons {
        justify-content: space-between;
    }
    
    .card-header .control-buttons .btn {
        flex: 1;
        min-width: 0;
    }
    
    .toast {
        bottom: 10px;
        right: 10px;
        left: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .dashboard-title {
        font-size: 24px;
    }
    
    .dashboard-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .prediction-info {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 250px !important;
    }
    
    .nav-menu a {
        font-size: 16px;
        padding: 12px 15px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .menu-toggle {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .template-card:hover {
        transform: none;
    }
    
    .social-links a:hover {
        transform: none;
    }
    
    .card-controls select {
        min-height: 44px;
    }
}

/* Orientation Specific */
@media (max-width: 768px) and (orientation: landscape) {
    .chart-container {
        height: 200px !important;
    }
    
    .dashboard-header {
        flex-direction: row;
        align-items: center;
    }
    
    .dashboard-controls {
        flex-wrap: nowrap;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .btn {
        border-width: 1.5px;
    }
    
    .chart-container {
        border-width: 1.5px;
    }
}
/* ========== EMERGENCY MOBILE MENU FIX ========== */
@media (max-width: 992px) {
    .nav-menu {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 280px !important;
        height: 100vh !important;
        background: var(--white) !important;
        flex-direction: column !important;
        padding: 80px 25px 25px !important;
        transition: left 0.3s ease-in-out !important;
        z-index: 1001 !important;
        overflow-y: auto !important;
        box-shadow: 2px 0 15px rgba(0,0,0,0.1) !important;
    }
    
    .nav-menu.active {
        display: flex !important;
        left: 0 !important;
    }
    
    .dark-theme .nav-menu {
        background: #1a1a1a !important;
    }
    
    .menu-toggle {
        display: flex !important;
        z-index: 1002 !important;
        position: relative !important;
    }
    
    /* Overlay fix */
    body.menu-open {
        overflow: hidden !important;
    }
    
    .nav-menu.active::before {
        content: '' !important;
        position: fixed !important;
        top: 0 !important;
        left: 280px !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0,0,0,0.5) !important;
        z-index: 1000 !important;
    }
}

/* Force hide menu toggle on desktop */
@media (min-width: 993px) {
    .menu-toggle {
        display: none !important;
    }
}
/* ========== EMERGENCY MOBILE MENU FIX ========== */
@media (max-width: 992px) {
    .nav-menu {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 280px !important;
        height: 100vh !important;
        background: var(--white) !important;
        flex-direction: column !important;
        padding: 80px 25px 25px !important;
        transition: left 0.3s ease-in-out !important;
        z-index: 1001 !important;
        overflow-y: auto !important;
        box-shadow: 2px 0 15px rgba(0,0,0,0.1) !important;
    }
    
    .nav-menu.active {
        display: flex !important;
        left: 0 !important;
    }
    
    .dark-theme .nav-menu {
        background: #1a1a1a !important;
    }
    
    .menu-toggle {
        display: flex !important;
        z-index: 1002 !important;
    }
    
    /* Overlay when menu is open */
    .nav-menu.active::before {
        content: '' !important;
        position: fixed !important;
        top: 0 !important;
        left: 280px !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0,0,0,0.5) !important;
        z-index: -1 !important;
    }
}

/* Force hide menu toggle on desktop */
@media (min-width: 993px) {
    .menu-toggle {
        display: none !important;
    }
}
/* System preference detection */
@media (prefers-color-scheme: dark) {
    body:not(.light-theme) {
        background-color: #0a0a0a;
        color: #ffffff;
    }
    
    body:not(.light-theme) .main-header {
        background: #1a1a1a;
        border-bottom-color: #333;
    }
    
    body:not(.light-theme) .dashboard-card {
        background: #1a1a1a;
        border-color: #333;
        color: #ffffff;
    }
}
/* Enhanced Control Buttons Layout */
.dashboard-controls-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px;
    background: var(--light);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    gap: 15px;
    flex-wrap: wrap;
}

.dark-theme .dashboard-controls-panel {
    background: #2d2d2d;
}

.control-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1;
}

.control-buttons .btn {
    padding: 8px 12px;
    font-size: 12px;
    min-width: auto;
    white-space: nowrap;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.control-buttons .btn i {
    font-size: 11px;
    margin-right: 4px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    white-space: nowrap;
    min-width: 120px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

/* Compact layout for smaller screens */
@media (max-width: 1200px) {
    .dashboard-controls-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .control-buttons {
        justify-content: center;
    }
    
    .status-indicator {
        justify-content: center;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .control-buttons {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        width: 100%;
    }
    
    .control-buttons .btn {
        padding: 10px 8px;
        font-size: 11px;
        min-height: 40px;
    }
    
    .control-buttons .btn i {
        margin-right: 2px;
        font-size: 10px;
    }
    
    /* Hide text on very small screens, show only icons */
    @media (max-width: 480px) {
        .control-buttons {
            grid-template-columns: repeat(5, 1fr);
        }
        
        .control-buttons .btn span {
            display: none;
        }
        
        .control-buttons .btn {
            padding: 8px;
            font-size: 10px;
        }
        
        .control-buttons .btn i {
            margin-right: 0;
            font-size: 12px;
        }
    }

/* Card header specific styles */
.card-header .dashboard-controls-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light);
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    margin-top: -16px;
    gap: 12px;
}

.dark-theme .card-header .dashboard-controls-panel {
    background: #2d2d2d;
}

@media (max-width: 1200px) {
    .card-header .dashboard-controls-panel {
        max-width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .card-header .dashboard-controls-panel {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .card-header .control-buttons {
        justify-content: space-between;
    }
}
/* Signal Chart Styles */
.signal-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    z-index: 100;
}

.signal-marker.buy {
    background: var(--success);
    box-shadow: 0 0 10px rgba(0, 176, 79, 0.5);
}

.signal-marker.sell {
    background: var(--danger);
    box-shadow: 0 0 10px rgba(255, 77, 79, 0.5);
}

.signal-marker.hold {
    background: var(--warning);
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

/* Signal Statistics */
.signal-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
    padding: 15px;
    background: var(--light);
    border-radius: 8px;
}

.dark-theme .signal-stats {
    background: #2d2d2d;
}

.stat-card {
    text-align: center;
    padding: 10px;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-number.positive {
    color: var(--success);
}

.stat-number.negative {
    color: var(--danger);
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
}

.dark-theme .stat-label {
    color: #cccccc;
}

/* Performance Metrics Grid */
.performance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.performance-card {
    background: var(--light);
    padding: 12px;
    border-radius: 6px;
    text-align: center;
}

.dark-theme .performance-card {
    background: #2d2d2d;
}

.performance-value {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.performance-label {
    font-size: 11px;
    color: var(--text-light);
}

.dark-theme .performance-label {
    color: #cccccc;
}

/* Signal History List */
.signal-history {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.dark-theme .signal-history {
    border-color: #333;
}

.signal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border);
}

.dark-theme .signal-item {
    border-bottom-color: #333;
}

.signal-item:last-child {
    border-bottom: none;
}

.signal-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.signal-type {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.signal-type.buy {
    background: rgba(0, 176, 79, 0.1);
    color: var(--success);
}

.signal-type.sell {
    background: rgba(255, 77, 79, 0.1);
    color: var(--danger);
}

.signal-type.hold {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning);
}

.signal-price {
    font-weight: 600;
    font-size: 14px;
}

.signal-time {
    font-size: 11px;
    color: var(--text-light);
}

.dark-theme .signal-time {
    color: #cccccc;
}

.signal-result {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 3px;
}

.signal-result.positive {
    background: rgba(0, 176, 79, 0.1);
    color: var(--success);
}

.signal-result.negative {
    background: rgba(255, 77, 79, 0.1);
    color: var(--danger);
}

/* Enhanced chart container for signals */
#signal-chart-container {
    position: relative;
}

/* Responsive adjustments for 3 charts */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .signal-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .signal-stats {
        grid-template-columns: 1fr;
    }
    
    .performance-grid {
        grid-template-columns: 1fr;
    }
}
.status-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 12px;
}

.status-label {
    font-weight: 600;
    color: var(--text-light);
}

.status-value {
    font-weight: 500;
}

.status-value.positive {
    color: var(--success);
}

.status-value.warning {
    color: var(--warning);
}

.status-value.negative {
    color: var(--danger);
}
.loading-text {
    color: #ffa500 !important;
    font-style: italic;
}

.ai-loading {
    opacity: 0.7;
    pointer-events: none;
}

.ai-ready {
    opacity: 1;
    pointer-events: all;
}
/* Mobile-specific styles */
.mobile-view .chart-container {
    height: 250px !important;
    margin-bottom: 10px;
}

.mobile-view .control-panel {
    padding: 8px !important;
}

.mobile-view button {
    min-height: 44px !important;
    min-width: 44px !important;
    font-size: 14px !important;
}

.mobile-view .prediction-display {
    font-size: 14px !important;
    padding: 6px !important;
}

.mobile-view .signal-marker {
    transform: scale(1.2); /* Larger markers for mobile */
}

/* Ensure charts are visible on mobile */
@media (max-width: 768px) {
    #price-chart-container,
    #prediction-chart-container,
    #signal-chart-container {
        height: 250px !important;
    }
    
    .prediction-stats {
        font-size: 12px !important;
    }
}
.scroll-controls {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.scroll-controls .btn {
    padding: 8px 12px;
    font-size: 12px;
}

.scroll-controls .btn i {
    margin-right: 5px;
}
.card-title {
    color: #0a5c36; /* Primary green color */
}
// ✅ Add CSS for the signal history panel (add this to your styles)
function addSignalHistoryStyles() {
    const styles = `
        .signal-history-panel {
            width: 320px;
            background: #1e1e1e;
            border-right: 1px solid #333;
            height: 100vh;
            overflow-y: auto;
            padding: 15px;
            color: white;
        }
        
        .signal-history-item {
            background: #2d2d2d;
            border-radius: 8px;
            padding: 12px;
            margin-bottom: 10px;
            border-left: 4px solid #666;
            transition: all 0.3s ease;
        }
        
        .signal-history-item:hover {
            background: #3d3d3d;
            transform: translateX(2px);
        }
        
        .signal-history-item.signal-buy {
            border-left-color: #00d664;
        }
        
        .signal-history-item.signal-sell {
            border-left-color: #ff4444;
        }
        
        .signal-history-item.signal-high {
            background: linear-gradient(135deg, #2d2d2d 0%, #1a3d2d 100%);
        }
        
        .signal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 8px;
        }
        
        .signal-icon {
            font-size: 16px;
            margin-right: 8px;
        }
        
        .signal-type-badge {
            font-size: 11px;
            font-weight: bold;
            padding: 2px 6px;
            border-radius: 4px;
            background: #444;
        }
        
        .signal-buy .signal-type-badge {
            background: #00d664;
            color: white;
        }
        
        .signal-sell .signal-type-badge {
            background: #ff4444;
            color: white;
        }
        
        .signal-time {
            font-size: 10px;
            color: #888;
        }
        
        .signal-reason {
            font-size: 12px;
            margin-bottom: 8px;
            color: #ccc;
            line-height: 1.3;
        }
        
        .signal-details {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 11px;
        }
        
        .signal-price {
            font-weight: bold;
            color: #fff;
        }
        
        .signal-change {
            font-weight: bold;
        }
        
        .signal-buy .signal-change {
            color: #00d664;
        }
        
       .dashboard-container {
    display: flex;
    height: 100vh;
    background: #1e1e1e;
}

/* Signal History Panel - Left Sidebar */
.signal-history-panel {
    width: 320px;
    background: #1e1e1e;
    border-right: 1px solid #333;
    height: 100vh;
    overflow-y: auto;
    color: white;
    flex-shrink: 0;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dashboard-card {
    background: #2d2d2d;
    border-radius: 8px;
    margin: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    background: #363636;
}

.card-title {
    margin: 0;
    font-size: 18px;
    color: #00FF00;
}

.card-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.scroll-controls {
    display: flex;
    gap: 5px;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
    background: #444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-small:hover {
    background: #555;
}

.chart-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
    gap: 15px;
}

.chart {
    background: #2d2d2d;
    border-radius: 8px;
    border: 1px solid #333;
}

#price-chart {
    height: 40%;
}

#prediction-chart {
    height: 30%;
}

#signal-chart {
    height: 30%;
} 
.market-regime-widget {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    margin: 10px 0;
    border-left: 4px solid #666;
}

.regime-container {
    text-align: center;
}

.regime-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

#regime-icon {
    font-size: 24px;
}

#regime-text {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
}

.regime-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.strength-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.regime-advice {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
    padding: 8px;
    background: var(--bg-secondary);
    border-radius: 6px;
    margin-top: 8px;
}

/* Color coding for different regimes */
.regime-bullish { border-left-color: #00d664; }
.regime-bearish { border-left-color: #ff4444; }
.regime-volatile { border-left-color: #ffaa00; }
.regime-calm { border-left-color: #0099ff; }
.regime-ranging { border-left-color: #9966ff; }
.regime-neutral { border-left-color: #666666; }

.strength-bullish { background: linear-gradient(90deg, #00d664, #00b8a9); }
.strength-bearish { background: linear-gradient(90deg, #ff4444, #ff6b6b); }
.strength-volatile { background: linear-gradient(90deg, #ffaa00, #ffd93d); }
.strength-calm { background: linear-gradient(90deg, #0099ff, #6c5ce7); }
.strength-ranging { background: linear-gradient(90deg, #9966ff, #c56cf0); }
.strength-neutral { background: linear-gradient(90deg, #666666, #999999); }
/* Add this to your CSS */
.regime-container {
    transition: all 0.3s ease;
}

.strength-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease, background 0.5s ease;
}

/* Color coding for strength bars */
.regime-bullish .strength-fill { background: linear-gradient(90deg, #00d664, #00b8a9); }
.regime-bearish .strength-fill { background: linear-gradient(90deg, #ff4444, #ff6b6b); }
.regime-volatile .strength-fill { background: linear-gradient(90deg, #ffaa00, #ffd93d); }
.regime-calm .strength-fill { background: linear-gradient(90deg, #0099ff, #6c5ce7); }
.regime-ranging .strength-fill { background: linear-gradient(90deg, #9966ff, #c56cf0); }
.regime-neutral .strength-fill { background: linear-gradient(90deg, #666666, #999999); }

/* Border colors for the widget */
.regime-bullish { border-left-color: #00d664 !important; }
.regime-bearish { border-left-color: #ff4444 !important; }
.regime-volatile { border-left-color: #ffaa00 !important; }
.regime-calm { border-left-color: #0099ff !important; }
.regime-ranging { border-left-color: #9966ff !important; }
.regime-neutral { border-left-color: #666666 !important; }
.threshold-control {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
    border-left: 3px solid #0099ff;
}

.threshold-control label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

.threshold-buttons {
    display: flex;
    gap: 5px;
    margin-bottom: 8px;
}

.threshold-btn {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.threshold-btn:hover {
    background: var(--hover-color);
}

.threshold-btn.active {
    background: #0099ff;
    color: white;
    border-color: #0099ff;
}

.threshold-info {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}
.threshold-control {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.threshold-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.threshold-label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.threshold-value {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.threshold-slider-container {
    margin: 15px 0;
}

.threshold-slider {
    width: 100%;
    height: 6px;
    border-radius: 10px;
    background: var(--bg-secondary);
    outline: none;
    -webkit-appearance: none;
}

.threshold-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border: 2px solid white;
}

.threshold-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border: 2px solid white;
}

.threshold-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.threshold-description {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
    font-style: italic;
}
#auto-start {
    width: 100%;
    margin: 12px 0;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#auto-start:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#auto-start:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.btn-success {
    background: linear-gradient(135deg, #00b09b, #96c93d);
    color: white;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}
/* Fix for Auto-Start button */
#auto-start.btn-success {
    background: linear-gradient(135deg, #00b04f 0%, #00a046 100%) !important;
    border: 1px solid #009140 !important;
}

#auto-start.btn-primary {
    background: linear-gradient(135deg, #2962FF 0%, #0039CB 100%) !important;
    border: 1px solid #002FA7 !important;
}

#auto-start:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
/* ========== ENHANCED PERFORMANCE DASHBOARD - PREMIUM DESIGN ========== */
.performance-dashboard {
    margin: 20px 0;
    padding: 0;
    background: transparent;
    border-radius: 16px;
}

.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 0;
}

.performance-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255,255,255,0.05) 100%);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.performance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--success));
}

.performance-card:nth-child(1)::before {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.performance-card:nth-child(2)::before {
    background: linear-gradient(90deg, #f093fb, #f5576c);
}

.performance-card:nth-child(3)::before {
    background: linear-gradient(90deg, #4facfe, #00f2fe);
}

.performance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255,255,255,0.2);
}

.performance-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
}

.performance-header i {
    font-size: 24px;
    background: linear-gradient(135deg, var(--primary), var(--success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.performance-header span {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 16px;
    letter-spacing: 0.5px;
}

.performance-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.metric {
    text-align: center;
    padding: 15px 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.metric:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.metric-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    opacity: 0.8;
}

.metric-value {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

/* Specific styling for different metric types */
.metric:nth-child(1) .metric-value {
    background: linear-gradient(135deg, #00b04f, #00d664);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric:nth-child(2) .metric-value {
    background: linear-gradient(135deg, #ffc107, #ffd54f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric:nth-child(3) .metric-value {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========== ENHANCED THRESHOLD CONTROL - PREMIUM ========== */
.threshold-control {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255,255,255,0.05) 100%);
    padding: 25px;
    border-radius: 16px;
    margin: 25px 0;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.threshold-control::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00b04f, #ffc107, #ff4d4f);
}

.threshold-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.threshold-label {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 16px;
    letter-spacing: 0.5px;
}

.threshold-value {
    font-weight: 800;
    color: var(--primary);
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 16px;
    border: 2px solid var(--primary);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 176, 79, 0.3);
}

.threshold-slider-container {
    margin: 25px 0;
    position: relative;
}

.threshold-slider {
    width: 100%;
    height: 10px;
    border-radius: 8px;
    background: linear-gradient(90deg, #00b04f, #ffc107, #ff4d4f);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.threshold-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.threshold-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.threshold-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.threshold-desc {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 15px;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    font-weight: 500;
}

/* ========== PREMIUM SIGNAL FILTERS ========== */
.signal-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 25px 0;
    padding: 25px;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 14px;
    min-width: 100px;
    letter-spacing: 0.5px;
}

.signal-filters label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    padding: 10px 18px;
    border-radius: 25px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.signal-filters label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.signal-filters label:hover::before {
    left: 100%;
}

.signal-filters label:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(255,255,255,0.2);
}

.signal-filters input[type="checkbox"]:checked + span {
    text-shadow: 0 0 10px currentColor;
}

/* Enhanced signal type styling */
.signal-strength.high { 
    color: #00ff88; 
    font-weight: 700; 
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.signal-strength.medium { 
    color: #ffd700; 
    font-weight: 700; 
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.signal-strength.weak { 
    color: #888; 
    font-weight: 700; 
}

.signal-type.buy { 
    color: #00ff88; 
    font-weight: 700; 
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.signal-type.sell { 
    color: #ff4444; 
    font-weight: 700; 
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

.signal-type.balance { 
    color: #ffaa00; 
    font-weight: 700; 
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
}

/* ========== GLOW EFFECTS ========== */
.glow-primary {
    box-shadow: 0 0 20px rgba(0, 176, 79, 0.3);
}

.glow-success {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.glow-warning {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.glow-danger {
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
}

/* ========== RESPONSIVE ENHANCEMENTS ========== */
@media (max-width: 768px) {
    .performance-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .performance-card {
        padding: 20px;
    }
    
    .performance-metrics {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .metric-value {
        font-size: 18px;
    }
    
    .signal-filters {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* ========== DARK THEME ENHANCEMENTS ========== */
body.dark-theme .performance-card {
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.9) 0%, rgba(50, 50, 70, 0.5) 100%);
}

body.dark-theme .threshold-control {
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.9) 0%, rgba(50, 50, 70, 0.5) 100%);
}

body.dark-theme .signal-filters {
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.9) 0%, rgba(50, 50, 70, 0.5) 100%);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.performance-card {
    animation: fadeInScale 0.6s ease-out;
}

.performance-card:nth-child(1) { animation-delay: 0.1s; }
.performance-card:nth-child(2) { animation-delay: 0.2s; }
.performance-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 176, 79, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 176, 79, 0.6);
    }
}

.live-pulse {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* ========== STATUS INDICATORS ========== */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

.status-dot.connected { background: var(--success); }
.status-dot.connecting { background: var(--warning); }
.status-dot.disconnected { background: var(--danger); }

/* ========== PREMIUM BUTTONS ========== */
.btn-premium {
    background: linear-gradient(135deg, var(--primary), var(--success));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 176, 79, 0.3);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 176, 79, 0.5);
}
/* ========== COMPACT PERFORMANCE DASHBOARD ========== */
.performance-dashboard {
    margin: 15px 0;
    padding: 0;
    background: transparent;
}

.performance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 0;
}

.performance-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255,255,255,0.05) 100%);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.performance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.performance-card:nth-child(1)::before {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.performance-card:nth-child(2)::before {
    background: linear-gradient(90deg, #f093fb, #f5576c);
}

.performance-card:nth-child(3)::before {
    background: linear-gradient(90deg, #4facfe, #00f2fe);
}

.performance-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.performance-header i {
    font-size: 16px;
    background: linear-gradient(135deg, var(--primary), var(--success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.performance-header span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
}

.performance-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.metric {
    text-align: center;
    padding: 8px 4px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
}

.metric-label {
    display: block;
    font-size: 10px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.metric-value {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ========== COMPACT THRESHOLD CONTROL ========== */
.threshold-control {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255,255,255,0.05) 100%);
    padding: 16px;
    border-radius: 12px;
    margin: 15px 0;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.threshold-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.threshold-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.threshold-value {
    font-weight: 700;
    color: var(--primary);
    background: rgba(255,255,255,0.1);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    border: 1px solid var(--primary);
}

.threshold-slider-container {
    margin: 12px 0;
}

.threshold-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, #00b04f, #ffc107, #ff4d4f);
    outline: none;
    -webkit-appearance: none;
}

.threshold-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: 2px solid var(--primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.threshold-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 6px;
    font-weight: 600;
}

.threshold-desc {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 8px;
    padding: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
}

/* ========== COMPACT SIGNAL FILTERS ========== */
.signal-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    padding: 16px;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 12px;
    min-width: 80px;
}

.signal-filters label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    font-weight: 600;
}

/* ========== COMPACT HISTORY PANELS ========== */
.history-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 15px 0;
}

.history-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    height: 200px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.panel-header h4 {
    margin: 0;
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
}

.badge {
    background: var(--primary);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.history-container {
    height: 152px;
    overflow-y: auto;
    padding: 12px;
    background: var(--bg-primary);
}

.empty-state {
    text-align: center;
    padding: 30px 15px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 20px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.empty-state p {
    margin: 0 0 4px 0;
    font-weight: 600;
    font-size: 12px;
}

.empty-state small {
    font-size: 10px;
    opacity: 0.7;
}

/* ========== COMPACT REAL-TIME STATUS ========== */
.real-time-status {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    margin-top: 15px;
}

.status-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
}

.status-header i {
    color: var(--primary);
    font-size: 14px;
}

.status-content {
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.status-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.status-value {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
}

.status-value.positive { color: var(--success); }

/* ========== SCROLL CONTROLS ========== */
.scroll-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.btn-small {
    padding: 6px 10px;
    font-size: 11px;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

/* ========== CARD HEADER COMPACT ========== */
.dashboard-card .card-header {
    padding: 16px 20px 12px 20px;
}

.dashboard-card .card-header h2 {
    margin: 0;
    font-size: 16px;
}

.card-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

/* ========== RESPONSIVE COMPACT DESIGN ========== */
@media (max-width: 1200px) {
    .performance-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .history-panels {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .performance-card {
        min-height: 100px;
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .performance-metrics {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .metric {
        padding: 6px 2px;
    }
    
    .metric-label {
        font-size: 9px;
    }
    
    .metric-value {
        font-size: 12px;
    }
    
    .signal-filters {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .status-content {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .history-panel {
        height: 180px;
    }
    
    .history-container {
        height: 132px;
    }
}

/* ========== DENSE LAYOUT UTILITIES ========== */
.dense-layout {
    line-height: 1.2;
}

.dense-layout .performance-header {
    margin-bottom: 8px;
}

.dense-layout .threshold-control {
    margin: 12px 0;
    padding: 12px;
}

.dense-layout .signal-filters {
    margin: 12px 0;
    padding: 12px;
}

/* ========== TIGHT SPACING ========== */
.tight-spacing * {
    margin: 0;
    padding: 0;
}

.tight-spacing .performance-dashboard {
    margin: 10px 0;
}

.tight-spacing .history-panels {
    margin: 12px 0;
}

.tight-spacing .real-time-status {
    margin-top: 12px;
}
/* Money Management Styles */
.money-panel {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    border: 1px solid var(--border-color);
}

.money-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.money-controls {
    display: flex;
    gap: 10px;
}

.money-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.money-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.stat-label {
    font-size: 0.85em;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.2em;
    font-weight: bold;
}

.stat-value.positive {
    color: var(--success);
}

.stat-value.negative {
    color: var(--danger);
}

.trade-history {
    margin-top: 20px;
}

.trade-history h4 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.trade-history-list {
    max-height: 300px;
    overflow-y: auto;
}

.trade-item {
    padding: 12px;
    margin: 8px 0;
    border-radius: 8px;
    border-left: 4px solid;
    background: var(--bg-secondary);
}

.trade-item.profit {
    border-left-color: var(--success);
}

.trade-item.loss {
    border-left-color: var(--danger);
}

.trade-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.trade-symbol {
    font-weight: bold;
}

.trade-type {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.trade-type.buy {
    background: var(--success);
    color: white;
}

.trade-type.sell {
    background: var(--danger);
    color: white;
}

.trade-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.trade-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trade-pnl.positive {
    color: var(--success);
    font-weight: bold;
}

.trade-pnl.negative {
    color: var(--danger);
    font-weight: bold;
}

.trade-duration {
    font-size: 0.8em;
    color: var(--text-muted);
}
 .wave-strength-display {
    padding: 8px 12px;
    border-radius: 8px;
    margin: 5px 0;
    font-weight: bold;
    text-align: center;
}

.wave-strength-display.calm {
    background: rgba(79, 195, 247, 0.2);
    border: 1px solid #4fc3f7;
    color: #0288d1;
}

.wave-strength-display.moderate {
    background: rgba(102, 187, 106, 0.2);
    border: 1px solid #66bb6a;
    color: #388e3c;
}

.wave-strength-display.strong {
    background: rgba(255, 183, 77, 0.2);
    border: 1px solid #ffb74d;
    color: #f57c00;
}

.wave-strength-display.extreme {
    background: rgba(255, 138, 101, 0.2);
    border: 1px solid #ff8a65;
    color: #d84315;
}

.wave-strength {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wave-icon {
    font-size: 1.2em;
}

.wave-text {
    font-weight: bold;
}

.wave-distribution {
    font-size: 0.8em;
    opacity: 0.8;
}
/* Trading Journal Styles */
.trading-journal {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    max-height: 300px;
    overflow-y: auto;
}

.journal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.journal-stats {
    display: flex;
    gap: 10px;
    font-size: 0.9em;
}

.journal-entry {
    padding: 8px;
    margin: 5px 0;
    border-radius: 4px;
    border-left: 4px solid #ccc;
}

.journal-entry.win {
    background: rgba(76, 175, 80, 0.1);
    border-left-color: #4caf50;
}

.journal-entry.loss {
    background: rgba(244, 67, 54, 0.1);
    border-left-color: #f44336;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
}

.entry-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    opacity: 0.8;
    margin-top: 4px;
}

/* Correlation Tracker Styles */
.correlation-tracker {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
}

.correlation-item {
    display: flex;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.correlation-bar {
    height: 4px;
    background: #4caf50;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.correlation-item.negative .correlation-bar {
    background: #f44336;
}

.correlation-value {
    margin-left: auto;
    font-weight: bold;
}

/* Price Levels Styles */
.price-levels {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
}

.price-level {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin: 5px 0;
    border-radius: 4px;
}

.price-level.resistance {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
}

.price-level.support {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
}

.price-level.current {
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid #2196f3;
    font-weight: bold;
}

.level-strength {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8em;
}

.level-strength.strong {
    background: #4caf50;
    color: white;
}

.level-strength.medium {
    background: #ff9800;
    color: white;
}

.level-strength.weak {
    background: #f44336;
    color: white;
}

/* Price Alert Styles */
.price-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px;
    border-radius: 8px;
    background: #ff9800;
    color: white;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
/* Technical Indicators Panel - FIXED STYLING */
.technical-panel {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 350px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1000;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: white;
}

.dark-theme .technical-panel {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.panel-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    color: white;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.technical-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.indicator-group {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    backdrop-filter: blur(5px);
}

.indicator-group h4 {
    margin: 0 0 12px 0;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.indicator-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
    justify-content: space-between;
}

.indicator-label {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.indicator-value {
    min-width: 60px;
    text-align: right;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    margin: 0 12px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.indicator-bar {
    width: 80px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.indicator-fill {
    height: 100%;
    border-radius: 4px;
    transition: all 0.5s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.indicator-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 10px;
    box-shadow: 0 0 8px currentColor;
}

/* Color states - MODERN */
.indicator-value.oversold, 
.indicator-value.bullish { 
    background: rgba(46, 204, 113, 0.3);
    color: #2ecc71;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.4);
}

.indicator-value.overbought,
.indicator-value.bearish { 
    background: rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.4);
}

.indicator-value.neutral { 
    background: rgba(241, 196, 15, 0.3);
    color: #f1c40f;
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.4);
}

.indicator-fill.oversold,
.indicator-fill.bullish { 
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.indicator-fill.overbought,
.indicator-fill.bearish { 
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.indicator-fill.neutral { 
    background: linear-gradient(90deg, #f1c40f, #f39c12);
}

.indicator-status.bullish { 
    background: #2ecc71;
    box-shadow: 0 0 12px #2ecc71;
}

.indicator-status.bearish { 
    background: #e74c3c;
    box-shadow: 0 0 12px #e74c3c;
}

.indicator-status.neutral { 
    background: #f1c40f;
    box-shadow: 0 0 12px #f1c40f;
}

.indicator-status.upper { 
    background: #e74c3c;
    box-shadow: 0 0 12px #e74c3c;
}

.indicator-status.lower { 
    background: #2ecc71;
    box-shadow: 0 0 12px #2ecc71;
}

.indicator-status.middle { 
    background: #f1c40f;
    box-shadow: 0 0 12px #f1c40f;
}

/* Animation for updates */
@keyframes pulseUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.indicator-value.updated {
    animation: pulseUpdate 0.6s ease;
}
/* WIDER LAYOUT */
.container {
    max-width: 1800px !important; /* Bredare container */
    padding: 0 40px !important;
}

/* Wider hero section */
.hero h1 {
    font-size: 4rem !important;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.5rem !important;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Wider features grid */
.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)) !important;
    gap: 35px !important;
}

.feature-card {
    padding: 40px 35px !important;
}

/* Wider prediction section */
.prediction-content {
    gap: 60px !important;
}

.prediction-text {
    min-width: 450px !important;
}

.prediction-image {
    flex: 0 0 550px !important;
}

.prediction-text h2 {
    font-size: 3.2rem !important;
}

/* Wider news grid */
.news-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
}

.news-card {
    min-height: 420px !important;
}

.news-image {
    height: 220px !important;
}

/* Wider market grid */
.market-grid {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 25px !important;
}

.market-card {
    min-height: 150px !important;
    padding: 25px 20px !important;
}

.market-card h3 {
    font-size: 1.2rem !important;
}

.market-card .ticker-price {
    font-size: 1.3rem !important;
}

/* Wider binance banner */
.banner-content {
    gap: 60px !important;
}

.banner-image, .banner-text {
    min-width: 450px !important;
}

/* Footer wider */
.footer-content {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 60px !important;
}

/* Ticker animation speed */
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.ticker-container {
    animation: ticker-scroll 25s linear infinite !important;
}

/* Better loading states */
.market-card .spinner {
    width: 40px !important;
    height: 40px !important;
    border-width: 4px !important;
}

/* Responsive adjustments for wider layout */
@media (max-width: 1600px) {
    .container {
        max-width: 1500px !important;
        padding: 0 30px !important;
    }
    
    .market-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    .news-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 1400px) {
    .container {
        max-width: 1300px !important;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .market-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 1140px !important;
    }
    
    .prediction-content {
        flex-direction: column !important;
    }
    
    .prediction-text,
    .prediction-image {
        min-width: 100% !important;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 20px !important;
    }
    
    .hero h1 {
        font-size: 3rem !important;
    }
    
    .market-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .banner-content {
        flex-direction: column !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px !important;
    }
    
    .hero h1 {
        font-size: 2.5rem !important;
    }
    
    .features-grid,
    .news-grid,
    .market-grid {
        grid-template-columns: 1fr !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
}
.learning-display {
    margin: 15px 0;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.learning-stats-card h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

.learning-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.learning-metric {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.metric-label {
    font-size: 14px;
    opacity: 0.9;
}

.metric-value {
    font-weight: 600;
    font-size: 14px;
}

.metric-value.positive {
    color: #4ade80;
}

.metric-value.negative {
    color: #f87171;
}

.metric-value.warning {
    color: #fbbf24;
}

.learning-progress {
    margin-top: 15px;
}

.progress-label {
    font-size: 14px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #4ade80;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.8;
    text-align: center;
}
/* Indicators Dashboard */
.indicators-dashboard {
    background: linear-gradient(135deg, rgba(18, 21, 28, 0.95) 0%, rgba(25, 28, 36, 0.95) 100%);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dashboard-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-icon {
    font-size: 24px;
}

.timeframe-selector {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 8px;
}

.timeframe {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeframe.active {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
    font-weight: 600;
}

.timeframe:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #f44336;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.update-info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 1200px) {
    .charts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

/* Chart Container */
.chart-container {
    background: rgba(30, 33, 41, 0.8);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.chart-container:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.chart-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.chart-title .icon {
    font-size: 20px;
}

.chart-title .symbol {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 500;
}

.chart-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.current-value {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    font-family: 'Roboto Mono', monospace;
}

.change {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    margin-top: 4px;
}

.change.negative {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

.signal {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
    margin-top: 4px;
}

.direction {
    font-size: 20px;
    color: #4caf50;
    margin-top: 4px;
}

/* Chart Wrapper */
.chart-wrapper {
    height: 120px;
    margin: 10px 0;
    position: relative;
}

.chart-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Chart Footer */
.chart-footer {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.trend-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.trend-arrow {
    font-size: 16px;
}

.volume-stats {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.volume-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.volume-stats .value {
    color: #fff;
    font-weight: 600;
    font-family: 'Roboto Mono', monospace;
}

/* RSI Levels */
.rsi-levels {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
}

.level {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 600;
    text-align: center;
}

.oversold {
    background: rgba(76, 175, 80, 0.3);
}

.neutral {
    background: rgba(255, 152, 0, 0.3);
}

.overbought {
    background: rgba(244, 67, 54, 0.3);
}

.rsi-marker {
    position: absolute;
    top: -4px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transform: translateX(-50%);
    border: 3px solid #ff9800;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: left 0.5s ease;
}

/* Trend Stats */
.trend-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.stat {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.value {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    font-family: 'Roboto Mono', monospace;
}

/* Correlation Panel */
.correlation-panel {
    background: rgba(30, 33, 41, 0.8);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 20px;
}

.correlation-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.correlation-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rule {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 4px solid transparent;
}

.rule:first-child {
    border-left-color: #4caf50;
}

.rule:nth-child(2) {
    border-left-color: #f44336;
}

.condition {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.volume-up {
    color: #4caf50;
    font-weight: 600;
}

.volume-down {
    color: #f44336;
    font-weight: 600;
}

.rsi-low {
    color: #4caf50;
    font-weight: 600;
}

.rsi-high {
    color: #f44336;
    font-weight: 600;
}

.result {
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
}

.strong-buy {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.strong-sell {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

.current-signal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.current-signal .label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.signal-value {
    font-size: 14px;
    font-weight: 600;
    color: #4caf50;
}

/* Update Animation */
@keyframes highlight {
    0% { background-color: transparent; }
    50% { background-color: rgba(33, 150, 243, 0.1); }
    100% { background-color: transparent; }
}

.updating {
    animation: highlight 1s ease;
}
/* Add to your CSS file */
.prediction-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: linear-gradient(135deg, #2196F3 0%, #21CBF3 100%);
    border-radius: 8px;
    min-width: 100px;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.counter-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 2px;
}

.counter-value {
    font-size: 24px;
    font-weight: 800;
    color: white;
}

.counter-subtitle {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
}