/* ========================================
   REPORTS.CSS - STYLES SPÉCIFIQUES POUR LES PAGES DE RAPPORT
   Famille Zibli - Design Premium
   ======================================== */

/* --- Rapports Section Styles --- */
.reports-section {
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-xl);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.reports-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--primary-gradient);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.reports-section.section-admin::before { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.reports-section.section-finance::before { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.reports-section.section-activity::before { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.reports-section.section-performance::before { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }

.section-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--gray-200);
}

.section-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    color: white;
    box-shadow: var(--shadow-sm);
}

.section-admin .section-icon { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.section-finance .section-icon { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.section-activity .section-icon { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.section-performance .section-icon { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }

.section-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* --- Report Card Styles --- */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.report-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.report-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.report-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.report-title h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.report-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: var(--spacing-lg);
    flex-grow: 1; /* Permet à la description de prendre l'espace */
}

.report-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-top: auto; /* Pousse les actions vers le bas */
}

.btn-report {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    flex-grow: 1;
}

.btn-primary-report {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.btn-primary-report:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary-report {
    background: var(--gray-100);
    color: var(--text-primary);
    border: 1px solid var(--gray-300);
}

.btn-secondary-report:hover {
    background: var(--gray-200);
    border-color: var(--gray-400);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .reports-section {
        padding: var(--spacing-lg);
    }
    .reports-grid {
        grid-template-columns: 1fr;
    }
    .section-title h2 {
        font-size: 1.25rem;
    }
    .report-title h3 {
        font-size: 1rem;
    }
    .report-actions {
        flex-direction: column;
    }
    .btn-report {
        width: 100%;
    }
}

/* ==========================================================================
   DARK LUXURY OVERRIDES - REPORTS PAGES
   ========================================================================== */
body.dark-mode .reports-section,
:root[data-theme="dark"] .reports-section {
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .filters-premium,
:root[data-theme="dark"] .filters-premium {
    background: rgba(30, 41, 59, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    color: #f8fafc !important;
}

body.dark-mode .filters-premium .form-control,
body.dark-mode .filters-premium input,
:root[data-theme="dark"] .filters-premium .form-control,
:root[data-theme="dark"] .filters-premium input {
    background: rgba(15, 23, 42, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #f8fafc !important;
}

body.dark-mode .section-title h2,
:root[data-theme="dark"] .section-title h2 {
    color: #f8fafc !important;
}

body.dark-mode .report-card,
:root[data-theme="dark"] .report-card {
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
}

body.dark-mode .report-card:hover,
:root[data-theme="dark"] .report-card:hover {
    background: rgba(51, 65, 85, 0.85) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.7), 0 0 20px rgba(56, 189, 248, 0.2) !important;
}

body.dark-mode .report-title h3,
:root[data-theme="dark"] .report-title h3 {
    color: #f8fafc !important;
}

body.dark-mode .report-description,
:root[data-theme="dark"] .report-description {
    color: #94a3b8 !important;
}

body.dark-mode .btn-secondary-report,
:root[data-theme="dark"] .btn-secondary-report {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

body.dark-mode .btn-secondary-report:hover,
:root[data-theme="dark"] .btn-secondary-report:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
}

body.dark-mode .page-header-premium,
:root[data-theme="dark"] .page-header-premium {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    color: #f8fafc !important;
}

body.dark-mode .stat-premium-card,
:root[data-theme="dark"] .stat-premium-card {
    background: rgba(30, 41, 59, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    color: #f8fafc !important;
}

body.dark-mode .stat-premium-label,
:root[data-theme="dark"] .stat-premium-label {
    color: #94a3b8 !important;
}

body.dark-mode .stat-premium-value,
:root[data-theme="dark"] .stat-premium-value {
    color: #f8fafc !important;
}

body.dark-mode .table-premium-container,
:root[data-theme="dark"] .table-premium-container {
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .table-premium-header,
:root[data-theme="dark"] .table-premium-header {
    background: rgba(30, 41, 59, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #f8fafc !important;
}

body.dark-mode .table-premium th,
:root[data-theme="dark"] .table-premium th {
    background: rgba(30, 41, 59, 0.95) !important;
    color: #38bdf8 !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.12) !important;
}

body.dark-mode .table-premium td,
:root[data-theme="dark"] .table-premium td {
    color: #cbd5e1 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .table-premium tr:hover td,
:root[data-theme="dark"] .table-premium tr:hover td {
    background: rgba(51, 65, 85, 0.4) !important;
}



