/* Live Dashboard Container - Apple Style */
.live-dashboard-container {
    background: rgba(28, 28, 30, 0.6);
    /* iOS Dark Mode System Gray 6 equivalent with opacity */
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    /* Larger, smoother corners */
    padding: 40px;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Header */
.live-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.live-dashboard-title {
    font-size: 28px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    letter-spacing: 0.01em;
}

.live-badge {
    background: rgba(52, 199, 89, 0.15);
    /* Apple Green */
    color: #32d74b;
    padding: 6px 14px;
    border-radius: 100px;
    /* Pill shape */
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #32d74b;
    border-radius: 50%;
    animation: pulse-apple 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-apple {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Metrics Grid */
.live-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.live-metric-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.3s ease;
}

.live-metric-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.02);
}

.live-metric-label {
    font-size: 13px;
    color: rgba(235, 235, 245, 0.6);
    /* Apple Label Color */
    font-weight: 500;
    margin-bottom: 8px;
}

.live-metric-value {
    font-size: 34px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    font-feature-settings: "tnum";
    /* Tabular numbers */
}

.live-metric-trend {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #32d74b;
    /* Apple Green */
    gap: 4px;
}

/* Charts Section */
.live-charts-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 32px;
}

.live-chart-title {
    font-size: 15px;
    color: rgba(235, 235, 245, 0.6);
    margin-bottom: 24px;
    font-weight: 500;
}

.platform-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.platform-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.platform-name {
    width: 90px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-align: right;
}

.platform-bar-track {
    flex: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    overflow: hidden;
}

.platform-bar-fill {
    height: 100%;
    border-radius: 100px;
    transition: width 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Apple-like spring */
}

/* Apple-style Gradients */
.bar-chatgpt {
    background: linear-gradient(90deg, #30d158, #34c759);
}

/* Green */
.bar-claude {
    background: linear-gradient(90deg, #ff9f0a, #ffb340);
}

/* Orange */
.bar-gemini {
    background: linear-gradient(90deg, #0a84ff, #409cff);
}

/* Blue */
.bar-perplexity {
    background: linear-gradient(90deg, #bf5af2, #d96ffb);
}

/* Purple */
.bar-others {
    background: linear-gradient(90deg, #8e8e93, #aeaeb2);
}

/* Gray */

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .live-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .live-dashboard-container {
        padding: 24px;
        border-radius: 24px;
    }

    .live-metric-value {
        font-size: 28px;
    }

    .live-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .live-badge {
        align-self: flex-start;
    }
}