/* backend.css */

/* Styles généraux pour le corps */
body {
    font-family: 'Poppins', sans-serif; /* Ou une autre police de votre choix */
    background-color: #f0f2f5; /* Couleur de fond légère */
}

/* Styles pour la carte de connexion */
.card {
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-title {
    color: #333;
    font-weight: 600;
}

.input-group-text {
    background-color: #e9ecef;
    border-color: #ced4da;
    color: #495057;
}

.form-control:focus {
    border-color: #80bdff; /* Couleur Bootstrap primary */
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

.btn-primary {
    background-color: #007bff; /* Couleur Bootstrap primary */
    border-color: #007bff;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

/* Styles pour le tableau de bord (viendra plus tard) */
.sidebar {
    background-color: #343a40; /* Dark background for sidebar */
    color: #f8f9fa;
    height: 100vh;
    padding-top: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px; /* Largeur par défaut de la barre latérale */
    transition: all 0.3s ease;
    z-index: 1000;
}

.sidebar.collapsed {
    width: 70px; /* Largeur réduite pour la barre latérale */
}

.sidebar .nav-link {
    color: #adb5bd;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: #495057;
    color: #fff;
    border-radius: 5px;
}

.sidebar .nav-link i {
    font-size: 1.5rem;
}

.sidebar .nav-link span {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .nav-link span {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    text-align: center;
}

.sidebar-header h3 {
    color: #fff;
    font-size: 1.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-toggle-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.content-wrapper-dashboard {
    margin-left: 250px; /* Correspond à la largeur de la sidebar */
    padding: 20px;
    transition: all 0.3s ease;
}

.content-wrapper-dashboard.expanded {
    margin-left: 70px; /* Quand la sidebar est réduite */
}

/* En-tête du contenu principal */
.content-header {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Cartes de statistiques */
.stat-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
}

.stat-card .icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Couleurs spécifiques pour les statistiques */
.stat-card.primary .icon { color: #007bff; }
.stat-card.success .icon { color: #28a745; }
.stat-card.warning .icon { color: #ffc107; }
.stat-card.danger .icon { color: #dc3545; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: 0; /* Cacher la sidebar par défaut sur mobile */
        left: -250px;
        z-index: 1050; /* Au-dessus du contenu */
    }

    .sidebar.show {
        width: 250px;
        left: 0;
    }

    .content-wrapper-dashboard {
        margin-left: 0;
    }

    .content-wrapper-dashboard.expanded {
        margin-left: 0;
    }

    .sidebar-toggle-btn {
        display: block; /* Afficher le bouton burger sur mobile */
        position: fixed; /* Fixer sur l'écran */
        left: 15px;
        top: 15px;
        color: #343a40; /* Couleur du bouton sur le fond clair du main content */
        z-index: 1060;
    }

    body.sidebar-open .sidebar-toggle-btn {
        color: #fff; /* Couleur du bouton quand la sidebar est ouverte */
    }

    /* Overlay quand la sidebar est ouverte sur mobile */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        display: none;
    }

    body.sidebar-open .sidebar-overlay {
        display: block;
    }
}

/* Animations simples */
.animate__animated {
    animation-duration: 0.5s;
    animation-fill-mode: both;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.animate__fadeIn { animation-name: fadeIn; }

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.animate__slideInLeft { animation-name: slideInLeft; }