/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    overflow-x: hidden;
}

/* Dashboard Container */
.dashboard-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.dashboard-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 100;
}

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

.dashboard-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header-info {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.current-time {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.1rem;
    color: #e0e0e0;
}

.market-status {
    padding: 0.5rem 1rem;
    background-color: #00C851;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Main Content */
.dashboard-main {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Metrics Row */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: linear-gradient(135deg, #2c3e50, #3a4a5c);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.metric-label {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-family: 'Roboto Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.metric-trend {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Color Classes */
.bullish {
    color: #00C851;
}

.bearish {
    color: #FF4444;
}

.neutral {
    color: #6C757D;
}

/* Dashboard Content Grid */
.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    min-height: 600px;
}

/* Panel Styles */
.left-panel, .center-panel, .right-panel {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
}

/* Tweet Feed */
.tweet-feed {
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #4a5568 #2d3748;
}

.tweet-feed::-webkit-scrollbar {
    width: 6px;
}

.tweet-feed::-webkit-scrollbar-track {
    background: #2d3748;
    border-radius: 3px;
}

.tweet-feed::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 3px;
}

.tweet-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tweet-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.tweet-item.bullish {
    border-left-color: #00C851;
}

.tweet-item.bearish {
    border-left-color: #FF4444;
}

.tweet-item.neutral {
    border-left-color: #6C757D;
}

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

.tweet-user {
    font-weight: 500;
    color: #007BFF;
}

.tweet-time {
    font-size: 0.8rem;
    color: #b0b0b0;
}

.tweet-content {
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.tweet-sentiment {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.sentiment-score {
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
}

/* Refresh Indicator */
.refresh-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #00C851;
    font-size: 0.9rem;
}

.refresh-dot {
    width: 8px;
    height: 8px;
    background-color: #00C851;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

/* Sentiment Gauge */
.sentiment-gauge-container {
    text-align: center;
    margin-bottom: 2rem;
}

.gauge-wrapper {
    position: relative;
    display: inline-block;
}

#sentimentGauge {
    max-width: 100%;
    height: auto;
}

.gauge-value {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Roboto Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
}

.gauge-label {
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #e0e0e0;
}

/* Keyword Cloud */
.keyword-cloud-container h3 {
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: 1.1rem;
}

.keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.keyword-tag {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.keyword-tag:hover {
    transform: scale(1.05);
}

.keyword-tag.bullish {
    background-color: rgba(0, 200, 81, 0.2);
    color: #00C851;
    border: 1px solid rgba(0, 200, 81, 0.3);
}

.keyword-tag.bearish {
    background-color: rgba(255, 68, 68, 0.2);
    color: #FF4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.keyword-tag.neutral {
    background-color: rgba(108, 117, 125, 0.2);
    color: #6C757D;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

/* Time Selector */
.time-selector {
    display: flex;
    gap: 0.5rem;
}

.time-btn {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.time-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.time-btn.active {
    background-color: #007BFF;
    border-color: #007BFF;
    color: #ffffff;
}

/* Chart Container */
.chart-container {
    height: 400px;
    position: relative;
}

/* Control Panel */
.control-panel {
    position: fixed;
    right: -300px;
    top: 0;
    width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    padding: 2rem;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    z-index: 200;
    overflow-y: auto;
}

.control-panel.open {
    right: 0;
}

.control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.control-header h3 {
    color: #ffffff;
    font-size: 1.2rem;
}

.toggle-panel {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.toggle-panel:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.control-group {
    margin-bottom: 2rem;
}

.control-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
    font-weight: 500;
}

/* Slider Styles */
.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #4a5568;
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007BFF;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007BFF;
    cursor: pointer;
    border: none;
}

.slider-value {
    display: inline-block;
    margin-left: 1rem;
    font-family: 'Roboto Mono', monospace;
    color: #007BFF;
    font-weight: 600;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #4a5568;
    transition: 0.4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #007BFF;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #6C757D;
}

.status-dot.active {
    background-color: #00C851;
    animation: pulse 2s infinite;
}

/* Refresh Button */
.refresh-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #007BFF, #0056b3);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: #007BFF;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    z-index: 300;
    display: none;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #0056b3;
}

/* Component Loading States */
.component-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.component-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-left: 2px solid #007BFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

.refresh-indicator.loading {
    animation: pulse-loading 1.5s ease-in-out infinite;
}

@keyframes pulse-loading {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.metric-card.loading {
    background: linear-gradient(135deg, #2c3e50, #3a4a5c);
    position: relative;
    overflow: hidden;
}

.metric-card.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.tweet-feed.loading {
    position: relative;
}

.tweet-feed.loading::before {
    content: '';
    position: absolute;
    top: 0;
    right: 10px;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 200, 81, 0.3);
    border-top: 2px solid #00C851;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 5;
}

.chart-container.loading {
    position: relative;
}

.chart-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-left: 3px solid #007BFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

.gauge-wrapper.loading {
    position: relative;
}

.gauge-wrapper.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-left: 3px solid #007BFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

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

/* Status indicator for data refresh */
.data-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #b0b0b0;
    margin-left: 1rem;
}

.data-status.updating {
    color: #007BFF;
}

.data-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #6C757D;
    transition: all 0.3s ease;
}

.data-status.updating .data-status-dot {
    background-color: #007BFF;
    animation: pulse 1s infinite;
}

/* Page Navigation */
.page-navigation {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    padding: 0 2rem;
    border-bottom: 1px solid #3a3a3a;
    background: rgba(26, 26, 26, 0.95);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #b0b0b0;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: #007BFF;
    border-bottom-color: #007BFF;
    background: rgba(0, 123, 255, 0.1);
}

.nav-link span {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard-content {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .center-panel {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .page-navigation {
        padding: 0 1rem;
        overflow-x: auto;
    }
    
    .nav-link {
        white-space: nowrap;
        padding: 1rem;
    }
    
    .dashboard-main {
        padding: 1rem;
    }
    
    .metrics-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .dashboard-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .dashboard-title {
        font-size: 1.4rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .control-panel {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 480px) {
    .metrics-row {
        grid-template-columns: 1fr;
    }
    
    .header-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .dashboard-title {
        font-size: 1.2rem;
    }
}



/* Ad Container Styles */
.ad-container {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    height: 600px;
    z-index: 50;
    background: rgba(42, 42, 42, 0.9);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 255, 136, 0.4),
        0 0 40px rgba(0, 255, 136, 0.2),
        0 0 60px rgba(0, 255, 136, 0.1),
        inset 0 0 20px rgba(0, 255, 136, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 255, 136, 0.6);
    animation: green-glow-pulse 3s ease-in-out infinite alternate;
}

.ad-container.left {
    left: 20px;
}

.ad-container.right {
    right: 20px;
}

.ad-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Main content padding to accommodate ads */
.dashboard-container {
    padding-left: 200px;
    padding-right: 200px;
}

/* Responsive design for ads */
@media (max-width: 1400px) {
    .dashboard-container {
        padding-left: 180px;
        padding-right: 180px;
    }
    
    .ad-container {
        width: 140px;
    }
    
    .ad-container.left {
        left: 15px;
    }
    
    .ad-container.right {
        right: 15px;
    }
}

@media (max-width: 1200px) {
    .dashboard-container {
        padding-left: 160px;
        padding-right: 160px;
    }
    
    .ad-container {
        width: 120px;
        height: 500px;
    }
    
    .ad-container.left {
        left: 10px;
    }
    
    .ad-container.right {
        right: 10px;
    }
}

@media (max-width: 1024px) {
    .dashboard-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .ad-container {
        display: none;
    }
}

/* Hide ads on mobile devices */
@media (max-width: 768px) {
    .ad-container {
        display: none;
    }
    
    .dashboard-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}


/* Streaming Banner Styles */
.streaming-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(90deg, #1a1a2e, #16213e, #0f3460);
    color: #00ff88;
    overflow: hidden;
    z-index: 1000;
    border-top: 3px solid #00ff88;
    box-shadow: 0 -5px 20px rgba(0, 255, 136, 0.4);
    backdrop-filter: blur(10px);
}

.streaming-content {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    animation: scroll-left 60s linear infinite;
    font-size: 18px;
    font-weight: 600;
    padding-left: 10%;
}

.promo-item {
    margin-right: 120px;
    display: inline-flex;
    align-items: center;
}

.promo-site {
    color: #ffffff;
    font-weight: bold;
    margin-right: 10px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.promo-code {
    background: linear-gradient(135deg, #00ff88, #00C851);
    color: #1a1a2e;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: bold;
    margin: 0 6px;
    box-shadow: 0 3px 10px rgba(0, 255, 136, 0.4);
}

.promo-discount {
    color: #ffd700;
    font-weight: bold;
    margin-left: 10px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes green-glow-pulse {
    0% {
        box-shadow: 
            0 4px 15px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(0, 255, 136, 0.4),
            0 0 40px rgba(0, 255, 136, 0.2),
            0 0 60px rgba(0, 255, 136, 0.1),
            inset 0 0 20px rgba(0, 255, 136, 0.1);
        border-color: rgba(0, 255, 136, 0.6);
    }
    100% {
        box-shadow: 
            0 4px 15px rgba(0, 0, 0, 0.3),
            0 0 30px rgba(0, 255, 136, 0.6),
            0 0 60px rgba(0, 255, 136, 0.4),
            0 0 90px rgba(0, 255, 136, 0.2),
            inset 0 0 30px rgba(0, 255, 136, 0.2);
        border-color: rgba(0, 255, 136, 0.9);
    }
}

/* Responsive banner styling */
@media (max-width: 768px) {
    .streaming-banner {
        height: 50px;
    }
    
    .streaming-content {
        font-size: 16px;
        animation: scroll-left 45s linear infinite;
    }
    
    .promo-item {
        margin-right: 100px;
    }
}

@media (max-width: 480px) {
    .streaming-banner {
        height: 45px;
    }
    
    .streaming-content {
        font-size: 14px;
        animation: scroll-left 35s linear infinite;
    }
    
    .promo-item {
        margin-right: 80px;
    }
}


/* Warning Message Styles */
.warning-banner {
    background: linear-gradient(90deg, #ff6b35, #ff8c42);
    color: #ffffff;
    padding: 12px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    border-bottom: 3px solid #ff4500;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    position: relative;
    z-index: 100;
    animation: pulse-warning 2s ease-in-out infinite;
}

.warning-banner .warning-icon {
    margin-right: 8px;
    font-size: 18px;
}

@keyframes pulse-warning {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    }
    50% {
        box-shadow: 0 2px 12px rgba(255, 107, 53, 0.5);
    }
}

/* Responsive warning banner */
@media (max-width: 768px) {
    .warning-banner {
        padding: 10px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .warning-banner {
        padding: 8px 12px;
        font-size: 13px;
    }
}

