body {
    display: flex;
    flex-direction: column;
}


.contain {
    padding-left: 251px;
    padding-top: 90px;
}

.dropdown-toggle::after {
    display: none !important;
}

td,
th {
    white-space: nowrap;
}

.pc-sidebar {
    transition: transform 0.3s ease-in-out;
}

.pc-sidebar.closed {
    transform: translateX(-100%);
}

.alert-success span {
    font-weight: 400;
}

.sidebar {
    width: 250px;
    height: 100vh;
    background: #0048b9;
    color: white;
    padding-top: 31px;
    position: fixed;
}

.badge {
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 8px;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s ease-in-out;
}

.btn-icon.text-warning {
    color: #0048b9 !important;
}

.btn-icon.text-danger {
    color: #0048b9 !important;
}

.sidebar a {
    color: white;
    padding: 15px;
    text-decoration: none;
    transition: 0.3s;
    margin-left: 0.5rem;
    border-top-left-radius: 18px;
    display: flex;
    align-items: center;
    align-content: center;
    gap: 0.5rem;
    border-bottom-left-radius: 18px;
}

.menu {
    padding-top: 3rem;
    display: grid;
    gap: 0.7rem;
}

.btn-custom {
    background-color: #0048b9;
    /* Couleur verte */
    color: white;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    border: none;
    text-decoration: none;
    list-style: none;
    transition: all 0.3s ease-in-out;
    display: inline-flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 8px;
    /* Espacement entre l'icône et le texte */
}

button {
    border: none;
    background-color: transparent;
}

.pc-sidebar .pc-navbar>.pc-item.active>.pc-link {
    font-weight: 500 !important;
    color: var(--pc-sidebar-active-color) !important;
}

.mesbt {
    display: flex;
    padding-bottom: 1rem;
    justify-content: space-between;
}

.retour {
    background-color: white;
    /* Couleur verte */
    color: #0048b9;
    border: 1px solid #0048b9;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;

    text-decoration: none;
    list-style: none;
    transition: all 0.3s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* Espacement entre l'icône et le texte */
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.171) !important;
}

.custom-alert {
    background-color: #d4edda;
    /* Vert Bootstrap léger */
    color: #155724;
    /* Vert foncé pour le texte */
    padding: 12px 18px;
    border-left: 5px solid #28a745;
    /* Bordure verte */
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-in-out, fadeOut 0.5s 3s ease-in-out forwards;
}

.custom-alert i {
    font-size: 20px;
    color: #28a745;
    /* Icône verte */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.header-search {
    position: relative;
    width: 250px;
    /* Ajuste la largeur */
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #6c757d;
    /* Gris 600 Bootstrap */
    font-size: 16px;
    display: flex;
    align-items: center;
}

.pagination {
    display: flex;
    justify-content: center;
}

.pagination .page-item {
    margin: 0 5px;
}

.pagination .page-link {
    color: #0048b9;
    /* Bleu principal */
    border: 1px solid #0048b9;
    border-radius: 4px;

    transition: all 0.3s ease-in-out;
}

.pagination .page-link:hover {
    background-color: #0048b9;
    color: #fff;
}

.pagination .active .page-link {
    background-color: #0048b9;
    color: #fff;
    border-color: #0048b9;
    box-shadow: 0px 4px 8px rgba(0, 72, 185, 0.3);
}


.badge-online {
    font-weight: 400;
    background-color: #eef9e8;
    /* Vert clair */
    color: #52c41a;
    border: 1px solid #52c41a;
    /* Vert foncé */
    font-size: 0.75em;
    padding: 3px;
}

.etud-container {
    padding-left: 70px;
    padding-right: 70px;
    padding-top: 112px;
    min-height: 100vh;
    background-color: #0048b90a;
}

.pagedanot {
    display: flex;
    justify-content: space-around;

}

.badge-offline {
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    background-color: #f8d7da;
    /* Rouge clair */
    color: #721c24;
    /* Rouge foncé */
}

.pagination .disabled .page-link {
    color: #b0c4de;
    border-color: #b0c4de;
    background-color: #f8f9fa;
    box-shadow: none;
}

.text-muted {
    display: none !important;
}

.fallback-icon {
    display: none;
    /* Caché si Feather fonctionne */
}

.form-control {
    padding-left: 40px;
    /* Pour ne pas chevaucher l'icône */
}

@media (max-width: 768px) {
    .header-search {
        width: 100%;
        /* Pleine largeur en mobile */
    }
}


.btn-custom:hover {
    background-color: #0048b9;
    /* Vert plus foncé au survol */
    /* Effet d'agrandissement */
}

.sidebar .active {
    background: #ffffff;
    color: black;
    border-top-left-radius: 18px;

    border-bottom-left-radius: 18px;
}

.content {
    padding-left: 250px;
    padding: 20px;
}

.head {
    padding: 15px 20px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.header {
    width: 100%;

    padding-left: 250px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.user-menu {
    position: relative;
}

.user-menu button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    display: none;
    width: 150px;
}

.user-dropdown a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: black;
}

.user-dropdown a:hover {
    background: #f1f1f1;
}

.user-menu:hover .user-dropdown {
    display: block;
}