/* --- Styles de Base / Réinitialisation (pour hauteur pleine page) --- */

html {
    height: 100%; /* ASSURE la hauteur de la racine */
}
body {
    margin: 0;
    padding: 0;
    height: 100%; /* ASSURE que le body prend toute la hauteur */
    font-family: 'Futura Std', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #F8F8F8; /* Fond blanc cassé (pour pages Auth) */
    color: #000000;
}

/* Nouvelle classe pour centrer UNIQUEMENT les pages d'authentification */
.auth-page {
    display: flex; /* Active Flexbox */
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
    min-height: 100vh; /* S'assure de prendre toute la hauteur de la fenêtre */
}

/* --- AUTHENTIFICATION STYLES (login.html, register.html) --- */

.auth-container {
    background-color: #FFFFFF;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 380px; 
    text-align: center;
}

.logo-container {
    background-color: #000000;
    padding: 10px 0;
    margin: -40px -40px 30px -40px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.logo-img {
    max-width: 120px;
}

h2 {
    color: #000000;
    font-weight: 600;
    margin-bottom: 25px;
}

input[type="email"],
input[type="password"],
input[type="text"],
select {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
    color: #000000;
}

/* Bouton principal (Couleur Mrs. B Or/Noir) */
button:not(.btn-primary) { /* Sauf pour les boutons avec classe btn-primary du Dashboard */
    background-color: #A56C0B; 
    color: #FFFFFF;
    padding: 12px 20px;
    margin: 20px 0 10px 0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

button:not(.btn-primary):hover {
    background-color: #000000;
}


/* --- Dashboard Admin Styles (NOIR/DORÉ) --- */

:root {
    --color-primary: #A56C0B; /* Doré */
    --color-background: #000000; /* Noir */
    --color-text: #FFFFFF; /* Blanc */
    --color-sidebar: #0a0a0a; /* Noir très légèrement plus clair */
    --color-card-bg: #1a1a1a;
}

/* Conteneur principal */
.dashboard-container {
    display: flex;
    min-height: 100vh; /* ASSURE la hauteur minimale de l'écran */
    background-color: var(--color-background);
    color: var(--color-text);
}

/* Barre Latérale */
.sidebar {
    width: 250px;
    background-color: var(--color-sidebar);
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    /* ASSURE que la sidebar prend toute la hauteur */
    min-height: 100vh; 
}

.logo-container-dash {
    text-align: center;
    margin-bottom: 30px;
}

.logo-sidebar {
    width: 150px; 
    height: auto;
    margin-bottom: 10px;
}

.logo-container-dash p {
    color: var(--color-primary);
    font-size: 1.2em;
    letter-spacing: 3px;
    margin: 0;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    padding: 0;
}

.nav-item a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--color-text);
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-item a:hover,
.nav-item.active a {
    background-color: var(--color-primary);
    color: var(--color-background);
}

/* Contenu Principal */
.main-content {
    flex-grow: 1;
    padding: 20px 40px;
}

/* Barre de titre et actions */
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
    margin-bottom: 30px;
}

.header-bar h1 {
    font-size: 1.8em;
    color: var(--color-primary);
    margin: 0;
}

/* Bouton principal (Doré) */
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-background);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #d19730; 
}

/* KPIs Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.kpi-card {
    background-color: var(--color-card-bg);
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid var(--color-primary);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.kpi-card h3 {
    color: #ccc;
    font-size: 0.9em;
    margin-top: 0;
}

.kpi-card p {
    font-size: 2.2em;
    font-weight: bold;
    color: var(--color-primary);
    margin: 5px 0 0 0;
}

/* Transactions List */
.transactions-section h2 {
    color: var(--color-text);
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 5px;
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-card-bg);
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #333;
    transition: border-color 0.3s;
}

.transaction-item:hover {
    border-color: var(--color-primary);
}

.transaction-detail {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.transaction-title {
    font-weight: bold;
    color: var(--color-text);
    font-size: 1.1em;
}

.transaction-date {
    font-size: 0.8em;
    color: #aaa;
    margin-top: 3px;
}

.transaction-amount {
    font-weight: bold;
    color: var(--color-primary);
    min-width: 150px;
    text-align: right;
}

.transaction-caisse {
    font-size: 0.9em;
    color: #ccc;
    min-width: 150px;
    text-align: right;
}

/* --- Modal Styles (Fenêtre Pop-up) --- */

.modal {
    display: none; 
    position: fixed; 
    z-index: 10; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.8); 
}

.modal-content {
    background-color: var(--color-sidebar); 
    color: var(--color-text);
    margin: 10% auto; 
    padding: 30px;
    border: 1px solid var(--color-primary); 
    width: 400px; 
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.modal-title {
    color: var(--color-primary);
    margin-top: 0;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 10px;
}

.close-button {
    color: var(--color-text);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-button:hover,
.close-button:focus {
    color: var(--color-primary);
    text-decoration: none;
}

/* Styles des inputs dans la modale */
.modal-content input,
.modal-content select {
    background-color: #333; 
    border: 1px solid #555;
    color: var(--color-text);
    margin-bottom: 15px;
}

/* --- Styles Ajoutés pour la Nouvelle Navigation --- */

/* Style pour le titre du sous-menu */
.nav-header {
    color: #888; 
    font-size: 0.85em;
    padding: 15px 15px 5px 15px;
    margin-top: 10px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Style pour les éléments sous le header (pour un léger retrait) */
.nav-item.sub-item a {
    padding-left: 30px; 
}

/* Séparateur pour distinguer les blocs de menu */
.nav-separator {
    height: 1px;
    background-color: #333;
    margin: 15px 0;
}

/* Nouvelle section de la modale de Catégorie */
.category-list-display {
    max-height: 200px;
    overflow-y: auto;
    background-color: #000;
    border: 1px solid #333;
    padding: 10px;
    border-radius: 5px;
}

/* Styles pour les étiquettes et inputs dans la modale de Saisie de Sortie */
.modal-content label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #ccc;
}

.modal-content input[type="number"],
.modal-content input[type="text"],
.modal-content select {
    /* Utilise les styles existants mais s'assure qu'ils sont appliqués */
    background-color: #333;
    border: 1px solid #555;
    color: var(--color-text);
    margin-bottom: 15px;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 5px;
}

/* --- Styles spécifiques à la Finance (finance.html) --- */

.finance-kpi .kpi-card {
    border: 1px solid #555;
}

/* Styles des KPIs financiers */
.kpi-positive {
    background-color: #004d00; /* Vert foncé pour les revenus */
    border-left: 5px solid #00cc00;
}

.kpi-accent {
    background-color: #4a4a4a; /* Gris neutre pour le capital */
    border-left: 5px solid #A56C0B; /* Couleur accent */
}

.kpi-net-cash {
    background-color: #003366; /* Bleu foncé pour le montant net */
    border-left: 5px solid #3399ff;
}

.kpi-card h3 {
    font-size: 1em;
    color: #ccc;
}

.kpi-card p {
    font-size: 1.8em;
    font-weight: bold;
    margin-top: 5px;
}

/* Grille pour Dépenses et Dettes */
.finance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.finance-block {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
}

.finance-block h2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.2em;
}

/* Styles de liste de données (Dépenses / Dettes) */
.data-list ul {
    list-style: none;
    padding: 0;
}

.data-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dotted #333;
}

.data-list li:last-child {
    border-bottom: none;
}

.expense-title, .debt-title {
    font-weight: bold;
    color: #ddd;
    display: block;
}

.expense-date {
    font-size: 0.8em;
    color: #888;
}

.expense-amount, .debt-amount {
    font-weight: bold;
    font-size: 1.1em;
}

.expense-negative {
    color: #ff6666; /* Rouge pour les dépenses */
}

.btn-delete {
    background-color: #8B0000;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.8em;
    margin-left: 10px;
    transition: background-color 0.3s;
}

.btn-delete:hover {
    background-color: #cc0000;
}

.btn-icon {
    background: none;
    color: #A56C0B; 
    border: none;
    font-size: 1em;
    cursor: pointer;
    margin-left: 10px;
}

/* --- Styles spécifiques aux Rapports (reports.html) --- */

.report-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.report-card {
    background-color: #1a1a1a;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.full-width {
    width: 100%;
}

.half-width {
    flex: 1 1 calc(50% - 10px); /* 50% de la largeur moins l'écart */
}

.report-card h3 {
    color: #A56C0B;
    font-size: 1.5em;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.chart-container {
    position: relative;
    height: 400px;
    padding-bottom: 20px; /* Espace sous le graphique */
}

/* Styles du Tableau de Rapport */
.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.9em;
}

.report-table th, .report-table td {
    border: 1px solid #333;
    padding: 10px;
    text-align: left;
    color: #ddd;
}

.report-table th {
    background-color: #333;
    color: white;
}

.report-table .amount {
    text-align: right;
    font-weight: bold;
}

/* Styles pour les listes de Top Services */
.data-list ul {
    list-style: none;
    padding: 0;
}

.data-list .report-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dotted #333;
}

.report-title {
    font-weight: bold;
    display: block;
}

.report-subtitle {
    font-size: 0.9em;
    color: #888;
}

.report-metric {
    font-size: 1.1em;
    color: #00cc00;
}

/* Styles pour l'Analyse des Rabais */
#discountAnalysis {
    display: flex;
    justify-content: space-around;
    gap: 15px;
}

.report-metric-box {
    background-color: #2a2a2a;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    flex: 1;
}

.report-metric-box h4 {
    color: #ccc;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.report-metric-box p.amount {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffb366; 
}




/* --- Styles généraux (Exemple de base pour dark mode) --- */

body {
    font-family: Arial, sans-serif;
    background-color: #0d0d0d;
    color: #ddd;
    margin: 0;
    padding: 0;
}

/* --- Layout Dashboard --- */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: #1a1a1a;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
}

.logo-container-dash {
    text-align: center;
    margin-bottom: 30px;
}

.logo-sidebar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.main-nav ul {
    list-style: none;
    padding: 0;
}

.nav-header {
    color: #888;
    text-transform: uppercase;
    font-size: 0.9em;
    padding: 15px 0 5px 0;
}

.nav-separator {
    height: 1px;
    background-color: #333;
    margin: 10px 0;
}

.nav-item a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #ddd;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-item a:hover {
    background-color: #2a2a2a;
    color: #A56C0B;
}

.nav-item.active a {
    background-color: #A56C0B;
    color: white;
    font-weight: bold;
}

.main-content {
    flex-grow: 1;
    padding: 20px 30px;
}

.header-bar {
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

/* --- KPI Grid --- */
.kpi-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-card {
    flex: 1;
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.kpi-card h3 {
    font-size: 1em;
    color: #ccc;
    margin-top: 0;
}

.kpi-card p {
    font-size: 2em;
    font-weight: bold;
    margin: 5px 0 0;
}

.kpi-daily { border-left: 5px solid #00cc00; }
.kpi-weekly { border-left: 5px solid #3399ff; }
.kpi-monthly { border-left: 5px solid #A56C0B; }

/* --- Tableau de données --- */
.data-table-section h2 {
    color: #ddd;
    margin-bottom: 15px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.data-table th {
    background-color: #2a2a2a;
    color: white;
    font-weight: bold;
}

.data-table tbody tr:hover {
    background-color: #252525;
}

/* --- Styles Modales --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #1a1a1a;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #333;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
}

.modal-title {
    color: #A56C0B;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #fff;
    text-decoration: none;
}

.modal form label {
    display: block;
    margin-top: 10px;
    color: #ccc;
}

.modal form input[type="text"],
.modal form input[type="number"],
.modal form input[type="email"],
.modal form input[type="password"],
.modal form select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 10px;
    border: 1px solid #333;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #2a2a2a;
    color: #ddd;
}

.btn-primary {
    background-color: #A56C0B;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #cc8400;
}

.btn-secondary {
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #555;
}

#categoryList ul {
    list-style: none;
    padding: 0;
}

#categoryList li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dotted #333;
}

.btn-delete {
    background-color: #8B0000;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.8em;
    margin-left: 10px;
    transition: background-color 0.3s;
}

.btn-delete:hover {
    background-color: #cc0000;
}

.btn-icon {
    background: none;
    color: #A56C0B; 
    border: none;
    font-size: 1em;
    cursor: pointer;
    margin-left: 10px;
}

/* --- Styles spécifiques à la Finance (finance.html) --- */

.finance-kpi .kpi-card {
    border: 1px solid #555;
}

.kpi-positive {
    background-color: #004d00;
    border-left: 5px solid #00cc00;
}

.kpi-accent {
    background-color: #4a4a4a;
    border-left: 5px solid #A56C0B;
}

.kpi-net-cash {
    background-color: #003366;
    border-left: 5px solid #3399ff;
}

.finance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.finance-block {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
}

.finance-block h2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.data-list ul {
    list-style: none;
    padding: 0;
}

.data-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dotted #333;
}

.expense-title, .debt-title {
    font-weight: bold;
    color: #ddd;
    display: block;
}

.expense-date {
    font-size: 0.8em;
    color: #888;
}

.expense-amount, .debt-amount {
    font-weight: bold;
    font-size: 1.1em;
}

.expense-negative {
    color: #ff6666;
}

/* --- Styles spécifiques aux Rapports (reports.html) --- */

/* --- Nouvelle grille 3 colonnes --- */
.report-grid-3 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    align-items: stretch; 
}

.report-card {
    background-color: #1a1a1a;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex; 
    flex-direction: column;
}

/* 1/3 de la largeur pour les petites cartes */
.card-small {
    flex: 1 1 calc(33.333% - 14px); 
    min-width: 250px; 
}

/* 2/3 de la largeur pour la carte principale (Tableau des catégories) */
.card-large {
    flex: 1 1 calc(66.666% - 10px); 
    min-width: 550px;
}

.report-card h3 {
    color: #A56C0B;
    font-size: 1.5em;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.chart-container {
    position: relative;
    height: 250px; /* Hauteur réduite pour les petits diagrammes */
    padding-bottom: 20px;
    flex-grow: 1; 
}

/* Styles du Tableau de Rapport */
.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.9em;
    max-height: 400px; 
    overflow-y: auto; 
    display: block; /* Nécessaire pour le max-height/overflow sur le tableau */
}

.report-table th, .report-table td {
    border: 1px solid #333;
    padding: 10px;
    text-align: left;
    color: #ddd;
}

.report-table th {
    background-color: #333;
    color: white;
}

.report-table .amount {
    text-align: right;
    font-weight: bold;
}

/* Styles pour les listes de Top Services */
.report-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dotted #333;
}

.report-title {
    font-weight: bold;
    display: block;
}

.report-subtitle {
    font-size: 0.9em;
    color: #888;
}

.report-metric {
    font-size: 1.1em;
    color: #00cc00;
}

/* Styles pour l'Analyse des Rabais */
#discountAnalysis {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
}

.report-metric-box {
    background-color: #2a2a2a;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    flex: 1;
}

.report-metric-box h4 {
    color: #ccc;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.report-metric-box p.amount {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffb366; 
}

/* Chart.js tooltips fix (rendre le texte blanc pour le dark mode) */
canvas {
    color: white;
}

/* Assurer la visibilité du texte dans Chart.js */

/* --- Nouveaux Styles pour Dashboard (Diagrammes) --- */

.dashboard-charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.chart-block {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.chart-block h2 {
    font-size: 1.2em;
    color: #ccc;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.chart-block.full-width {
    grid-column: 1 / -1; /* Prend toute la largeur sur une ligne */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chart-container-medium {
    position: relative;
    width: 100%;
    height: 350px; /* Hauteur définie pour les diagrammes */
}

/* Styles pour les couleurs de la table des transactions */
.transaction-table .text-positive {
    color: #00cc00; /* Vert pour les entrées */
    font-weight: bold;
}

.transaction-table .text-negative {
    color: #ff6666; /* Rouge pour les dépenses */
    font-weight: bold;
}

@media (max-width: 900px) {
    .dashboard-charts-grid {
        grid-template-columns: 1fr; /* Passage à une seule colonne sur mobile */
    }
}
/* --- Nouveaux Styles pour Dashboard (Diagrammes) --- */

.dashboard-charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.chart-block {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.chart-block h2 {
    font-size: 1.2em;
    color: #ccc;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.chart-block.full-width {
    grid-column: 1 / -1; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chart-container-medium {
    position: relative;
    width: 100%;
    height: 350px; 
}

/* Styles pour la table des transactions */
.transaction-table .text-positive {
    color: #00cc00; 
    font-weight: bold;
}

.transaction-table .text-negative {
    color: #ff6666; 
    font-weight: bold;
}

@media (max-width: 900px) {
    .dashboard-charts-grid {
        grid-template-columns: 1fr; 
    }
}