/* Dashboard Demo Styles */
.dashboard-demo {
    background: #0a0a0a;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid #1a1a1a;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.dashboard-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.dashboard-period {
    font-size: 14px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-period svg {
    width: 16px;
    height: 16px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #00ff88;
    transform: translateY(-2px);
}

.stat-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #00ff88;
    margin-bottom: 8px;
}

.stat-change {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.positive {
    color: #00ff88;
}

.stat-change.negative {
    color: #ff4444;
}

.stat-change svg {
    width: 14px;
    height: 14px;
}

/* Chart Section */
.chart-section {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.chart-filters {
    display: flex;
    gap: 8px;
}

.filter-btn {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #888;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: #00ff88;
    color: #00ff88;
}

.filter-btn.active {
    background: #00ff88;
    border-color: #00ff88;
    color: #000;
}

/* Bar Chart - Cards Style */
.bar-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    padding: 0;
}

.bar-group {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.bar-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #00cc6a);
    opacity: 0;
    transition: opacity 0.3s;
}

.bar-group:hover {
    background: rgba(0, 255, 136, 0.05);
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.15);
}

.bar-group:hover::before {
    opacity: 1;
}

.bar-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bar {
    display: none;
}

.bar-value {
    font-size: 32px;
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 2px 12px rgba(0, 255, 136, 0.4);
    line-height: 1;
}

.bar-label {
    font-size: 13px;
    color: #888;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Heatmap */
.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 4px;
    margin-top: 16px;
}

.heatmap-hour {
    aspect-ratio: 1;
    border-radius: 4px;
    background: #1a1a1a;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.heatmap-hour:hover {
    transform: scale(1.1);
    z-index: 10;
}

.heatmap-hour.intensity-0 { background: #1a1a1a; }
.heatmap-hour.intensity-1 { background: #003322; }
.heatmap-hour.intensity-2 { background: #005533; }
.heatmap-hour.intensity-3 { background: #007744; }
.heatmap-hour.intensity-4 { background: #00aa66; }
.heatmap-hour.intensity-5 { background: #00ff88; box-shadow: 0 0 12px rgba(0, 255, 136, 0.6); }

.heatmap-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 11px;
    color: #666;
}

/* Comparison Section */
.comparison-section {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 24px;
}

.comparison-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #222;
}

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

.comparison-label {
    font-size: 14px;
    color: #ccc;
}

.comparison-bars {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    max-width: 400px;
    margin: 0 24px;
}

.comparison-bar {
    height: 8px;
    background: linear-gradient(90deg, #00ff88 0%, #00cc6a 100%);
    border-radius: 4px;
    transition: all 0.5s ease;
    box-shadow: 0 2px 8px rgba(0, 255, 136, 0.3);
}

.comparison-value {
    font-size: 16px;
    font-weight: 600;
    color: #00ff88;
    min-width: 60px;
    text-align: right;
}

/* Live indicator */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #00ff88;
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 8px rgba(0, 255, 136, 0.8);
    }
    50% {
        opacity: 0.5;
        box-shadow: 0 0 16px rgba(0, 255, 136, 0.4);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-demo {
        padding: 20px;
    }

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

    .bar-chart {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
    }

    .bar-group {
        padding: 20px 16px;
    }

    .bar-value {
        font-size: 28px;
    }

    .heatmap-grid {
        grid-template-columns: repeat(12, 1fr);
    }

    .comparison-bars {
        max-width: 200px;
        margin: 0 12px;
    }
}
