/**
 * Rapport hebdomadaire d'activité — Styles
 * BookConnect 2026
 */

/* === En-tête === */
.report-header {
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}
.report-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}
.report-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin-top: 0.25rem;
}
.report-selector .form-select {
    min-width: 260px;
    border-color: #cbd5e1;
    font-size: 0.85rem;
}

/* === Section titles === */
.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

/* === Highlights === */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
}
.highlight-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, #fef3c7, #fef9c3);
    border-radius: 10px;
    border-left: 4px solid #f59e0b;
}
.highlight-icon {
    font-size: 1.3rem;
    color: #d97706;
    flex-shrink: 0;
}
.highlight-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: #92400e;
}
.highlight-value {
    font-size: 0.78rem;
    color: #b45309;
}

/* === Métriques === */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}
.metric-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.1rem 0.9rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}
.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--metric-color, #6366f1);
}
.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.metric-icon {
    font-size: 1.4rem;
    color: var(--metric-color, #6366f1);
    margin-bottom: 0.4rem;
}
.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}
.metric-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 0.2rem;
}
.metric-trend {
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 0.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
}
.metric-trend.trend-up {
    color: #16a34a;
    background: #dcfce7;
}
.metric-trend.trend-down {
    color: #dc2626;
    background: #fee2e2;
}
.metric-trend.trend-stable {
    color: #64748b;
    background: #f1f5f9;
}

/* === Engagement === */
.engagement-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: #fff;
    border-radius: 12px;
    border: 2px solid var(--engagement-color, #6366f1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.engagement-icon {
    font-size: 2rem;
    color: var(--engagement-color, #6366f1);
}
.engagement-level {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--engagement-color, #6366f1);
}
.engagement-desc {
    font-size: 0.85rem;
    color: #64748b;
}

/* === Historique table === */
.report-history-table {
    font-size: 0.85rem;
}
.report-history-table thead th {
    font-size: 0.9rem;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
    padding: 0.5rem;
}
.report-history-table tbody td {
    vertical-align: middle;
    padding: 0.5rem;
}
.report-history-table .table-active {
    background-color: #ede9fe !important;
}

/* === État vide === */
.report-empty {
    background: #f8fafc;
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
}
.report-empty h3 {
    color: #475569;
    font-size: 1.2rem;
}

/* === Responsive === */
@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    .report-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
    .report-selector .form-select {
        min-width: 100%;
    }
    .metric-value {
        font-size: 1.5rem;
    }
}
@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .metric-card {
        padding: 0.8rem 0.5rem;
    }
}
