/* Interactive Dashboard Preview Styles */

.dashboard-preview-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.dashboard-frame {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

/* Dashboard Header */
.dashboard-header {
    background: linear-gradient(135deg, #001AB1 0%, #2563eb 100%);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-tabs {
    display: flex;
    gap: 8px;
}

.dashboard-tabs .tab {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dashboard-tabs .tab.active {
    background: rgba(14, 165, 233, 0.2);
    color: #0ea5e9;
}

.dashboard-tabs .tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
}

.dashboard-date {
    font-size: 0.85rem;
    color: #999;
}

/* Dashboard Content */
.dashboard-content {
    padding: 24px;
    background: #fafafa;
}

/* KPI Cards Row */
.dashboard-kpi-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-kpi-card {
    background: #ffffff;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.dashboard-kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.kpi-card-label {
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.kpi-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.kpi-card-value .star {
    color: #fbbf24; /* Keep yellow for star rating */
    font-size: 1.4rem;
    margin-left: 2px;
}

.kpi-card-trend {
    font-size: 0.8rem;
    font-weight: 600;
}

.kpi-card-trend.positive {
    color: #10b981; /* Green for positive trends */
}

.kpi-card-trend.negative {
    color: #dc2626;
}

/* Chart */
.dashboard-chart {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 16px;
}

.chart-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 20px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 140px;
    gap: 8px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, #0ea5e9 0%, #2563eb 100%);
    border-radius: 6px 6px 0 0;
    min-height: 20px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: chartBarGrow 0.8s ease-out;
}

@keyframes chartBarGrow {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        height: var(--bar-height);
        opacity: 1;
    }
}

.chart-bar:hover {
    filter: brightness(1.15);
    transform: scaleY(1.05);
}

.bar-label {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
}

/* Live Badge */
.dashboard-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #10b981;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Dashboard Note */
.dashboard-note {
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
}

/* Video Section at Bottom */
.video-intro-section {
    padding: 80px 20px;
    background: #f9fafb;
}

.video-intro-section .section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.video-intro-section .video-subtitle {
    text-align: center;
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 32px;
    font-weight: 500;
}

.video-container-bottom {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.video-container-bottom .video-placeholder {
    position: relative;
    width: 100%;
    max-width: 900px;
    padding-bottom: 50%; /* 2:1 aspect ratio - wider rectangle */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
}

.video-container-bottom .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
    cursor: pointer;
    transition: background 0.3s ease;
}

.video-container-bottom .video-overlay:hover {
    background: rgba(0, 0, 0, 0.5);
}

.video-container-bottom .play-button {
    width: 80px;
    height: 80px;
    background: rgba(14, 165, 233, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.video-container-bottom .play-button:hover {
    background: #0ea5e9;
    transform: scale(1.1);
}

.video-container-bottom .play-button svg {
    width: 32px;
    height: 32px;
    fill: #fff;
    margin-left: 4px;
}

.video-container-bottom .video-text {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

.video-container-bottom .video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    background: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-preview-container {
        max-width: 100%;
    }
    
    .dashboard-frame {
        border-radius: 12px;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .dashboard-tabs {
        flex-wrap: wrap;
    }
    
    .dashboard-tabs .tab {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    .dashboard-content {
        padding: 16px;
    }
    
    .dashboard-kpi-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .kpi-card-value {
        font-size: 1.5rem;
    }
    
    .chart-bars {
        height: 100px;
    }
    
    .video-intro-section {
        padding: 60px 20px;
    }
    
    .video-intro-section .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .dashboard-header {
        padding: 12px 16px;
    }
    
    .dashboard-tabs .tab {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .dashboard-date {
        font-size: 0.75rem;
    }
    
    .dashboard-kpi-card {
        padding: 12px;
    }
    
    .kpi-card-value {
        font-size: 1.3rem;
    }
    
    .chart-bars {
        height: 80px;
        gap: 4px;
    }
    
    .bar-label {
        font-size: 0.65rem;
    }
}
