/* analytics.css - Pro Dashboard Styles */

.analytics-container {
    padding-bottom: 2rem;
    animation: fadeIn 0.4s ease-out;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    /* Stats Row, Main Row */
    gap: 1.5rem;
}

/* 1. Top Stat Cards */
.stat-card {
    grid-column: span 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 140px;
    position: relative;
    overflow: hidden;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 2. Main Chart Area */
.chart-card {
    grid-column: span 2;
    grid-row: span 2;
    padding: 1.5rem;
    min-height: 400px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.chart-container {
    height: 320px;
    width: 100%;
}



/* 4. Recent Activity (Bottom) */
.recent-card {
    grid-column: span 3;
    padding: 1.5rem;
}

.activity-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.activity-row {
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.2s, background 0.2s;
}

.activity-row:hover {
    background: rgba(255, 255, 255, 0.05);
    /* transform: scale(1.01); user wants simple */
}

.activity-cell {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.activity-cell:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.activity-cell:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-done {
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
}

/* Graphic Table & Sparklines */
.graphic-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.graphic-table th {
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.graphic-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    font-size: 0.9rem;
    color: var(--text-primary);
}

.mini-sparkline {
    display: flex;
    gap: 4px;
    align-items: center;
}

.spark-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.spark-dot.active {
    background: #f472b6;
    box-shadow: 0 0 8px rgba(244, 114, 182, 0.4);
}


@media (max-width: 1000px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-card {
        grid-column: span 1;
    }

    .chart-card {
        grid-column: span 2;
    }


    .recent-card {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        grid-column: span 1;
    }

    .chart-card {
        grid-column: span 1;
        min-height: 300px;
        padding: 1rem;
    }


    .recent-card {
        grid-column: span 1;
        padding: 1rem;
    }

    .activity-cell {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }

    .status-badge {
        padding: 2px 8px;
        font-size: 0.65rem;
    }
}