/* analytics.css */

.analytics-header {
    margin-bottom: 32px;
}

.analytics-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.analytics-sub {
    color: #64748b;
    font-size: 0.95rem;
}

/* Grid Layout */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.analytics-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.analytics-card-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.analytics-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.analytics-card-sub {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Specific Adjustments */
.analytics-grid-full {
    grid-template-columns: 1fr;
}

.analytics-lower-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
}

/* Dark mode overrides (if applicable) */
body.dark-mode .analytics-card {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .analytics-title,
body.dark-mode .analytics-card-title {
    color: #f8fafc;
}

body.dark-mode .analytics-sub,
body.dark-mode .analytics-card-sub {
    color: #94a3b8;
}

@media (max-width: 1024px) {

    .analytics-grid,
    .analytics-lower-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .analytics-header {
        margin-bottom: 20px;
    }

    .analytics-title {
        font-size: 1.35rem;
    }

    .analytics-sub {
        font-size: 0.85rem;
    }

    .analytics-card {
        padding: 16px;
    }

    .chart-container {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .analytics-title {
        font-size: 1.15rem;
    }

    .analytics-sub {
        font-size: 0.78rem;
    }

    .analytics-card {
        padding: 12px;
    }

    .analytics-card-title {
        font-size: 0.9rem;
    }

    .chart-container {
        height: 180px;
    }
}

/* Stats Cards */
.analytics-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    border: 1px solid #f1f5f9;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.icon-mail { background: #eff6ff; color: #3b82f6; }
.icon-download { background: #f0fdf4; color: #22c55e; }
.icon-total { background: #faf5ff; color: #a855f7; }
.icon-linkedin { background: #eef2ff; color: #0a66c2; }