/* Styles généraux */
body {
    background-color: #f8f9fa;
}

/* Styles de la navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

/* Styles des cards */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075);
    margin-bottom: 1rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,.125);
}

/* Styles des cards du dashboard */
.card.bg-expenses {
    background-color: #4e73df;  /* Bleu royal pour les dépenses */
    border-color: #4668d9;
}

.card.bg-distance {
    background-color: #f6c23e;  /* Jaune pour la distance */
    border-color: #f4b619;
}

.card.bg-price {
    background-color: #36b9cc;  /* Cyan pour le prix */
    border-color: #2fa4b9;
}

.card.bg-consumption {
    background-color: #1cc88a;  /* Vert pour la consommation */
    border-color: #18a97c;
}

/* Effet hover sur les cards */
.card[class*="bg-"]:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease-in-out;
}

/* Styles des tableaux */
.table th {
    background-color: #f8f9fa;
    font-weight: 700;
}

/* Styles des boutons */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Style du footer */
.footer {
    background-color: #f8f9fa;
    padding: 1rem 0;
    margin-top: auto;
    border-top: 1px solid #dee2e6;
}

/* Styles pour la page de connexion */
/* Suppression des anciens styles bg-image qui ne sont plus utilisés */
.bg-image, .bg-image::before {
    display: none;
}

/* Styles des colonnes */
.image-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #f8f9fa; /* Couleur de fond optionnelle, à adapter selon votre design */
    height: 100%;
}

.login-image {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Colonne droite - contenu */
.login-content {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container-fluid {
        min-height: 100vh;
        height: auto !important;
    }
    
    .bg-image {
        min-height: 300px;  /* Hauteur minimum sur mobile */
    }

    .image-container {
        display: none;
    }
}

/* Styles pour le tableau de bord d'analyse */
.chart-container {
    height: 300px;
    margin-bottom: 1rem;
}

.stat-card {
    transition: transform 0.2s;
    border-radius: 10px;
    overflow: hidden;
}

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

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

#categoryChart, #timeChart {
    max-width: 100%;
}

.section-header {
    padding: 1rem;
    background: linear-gradient(90deg, #f8f9fa, #ffffff);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Styles pour mettre en gras les textes dans card-body */
.card-body .text-xs {
    font-weight: 600;
}

.card-body .h3,
.card-body .h5 {
    font-weight: 700;
}

.card-body h5 {
    font-weight: 700;
}

.bg-light .card-body h5 {
    font-weight: 600;
}

.bg-light .card-body p.h3 {
    font-weight: 700;
}