/* NAVBAR */
.navbar {
	height: 70px; /* Ajustez selon la hauteur réelle de votre navbar */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-link {
    position: relative;
    margin-right: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0d6efd;
    transition: width 0.3s ease;
}

.nav-link:hover:after {
    width: 100%;
}

.nav-item.active .nav-link:after {
    width: 100%;
}

/* Styles pour le bouton hamburger */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    transition: transform 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

/* Animation du hamburger quand il est ouvert */
.navbar-toggler[aria-expanded="true"] {
    transform: rotate(90deg);
}

/* Styles pour le menu mobile */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        max-height: 80vh; /* Limite la hauteur en cas de beaucoup d'éléments */
        overflow-y: auto; /* Permet le défilement si nécessaire */
    }
    
    .navbar-nav {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    .nav-item {
        margin-bottom: 0.75rem;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        padding-left: 0.5rem;
        font-size: 1.1rem;
    }
    
    /* Ajuster la position du trait de soulignement */
    .nav-link:after {
        bottom: -5px;
    }
    
    /* Styles pour le sélecteur d'EHPAD en mode mobile */
    .d-flex.align-items-center {
        flex-direction: column;
        align-items: flex-start !important;
        width: 100%;
        margin-top: 1rem;
    }
    
    .d-flex.align-items-center form,
    .d-flex.align-items-center span {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Ajuster les boutons du profil et déconnexion */
    .search-bar.d-flex {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-bar .btn {
        flex: 1;
        margin-right: 0.5rem;
    }
    
    .search-bar .btn:last-child {
        margin-right: 0;
    }
}

/* Style de base pour le bouton "Se déconnecter" */
.navbar .btn-primary {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Au survol du bouton */
.navbar .btn-primary:hover {
    background-color: #fff; /* Fond blanc */
    color: #0d6efd; /* Texte et icône en bleu */
}

.navbar .btn-primary:hover i {
    color: #0d6efd; /* Icône en bleu au survol */
}

.search-bar .input-group {
    border-radius: 25px;
    overflow: hidden;
}

.search-bar .form-control {
    border-right: none;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
}

.search-bar .btn {
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    border-left: none;
}

/* Effet de scrolling pour navbar */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* FOOTER */
/* Style pour les liens du footer au survol */
.hover-white {
    transition: color 0.3s ease;
}
.hover-white:hover {
    color: #fff !important;
}

/* GENERAL */
/* Styles pour s'assurer que le footer reste en bas */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 100px; /* Correspond à la hauteur de la navbar */
}

main {
    flex: 1;
}

footer {
    margin-top: auto;
    padding-bottom: 100px;
}

/* BILANS */
.urgent { background-color: #f8d7da !important; } /* Rouge clair */
.modere { background-color: #fff3cd !important; } /* Jaune clair */
.ok { background-color: #d4edda !important; } /* Vert clair */

.table th, .table td {
    vertical-align: middle;
}

/* Styles pour les couleurs des lignes */
.urgent-row {
    border-left: 4px solid #dc3545;
}

.modere-row {
    border-left: 4px solid #ffc107;
}

.ok-row {
    border-left: 4px solid #198754;
}

.table-secondary-row {
    border-left: 4px solid #6c757d;
}

/* Styles pour les badges */
.badge {
    font-weight: 500;
}

.bg-primary-border {
    border: 1px solid rgba(13, 110, 253, 0.3);
}

.bg-success-border {
    border: 1px solid rgba(25, 135, 84, 0.3);
}

.bg-warning-border {
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.bg-info-border {
    border: 1px solid rgba(13, 202, 240, 0.3);
}

.bg-secondary-border {
    border: 1px solid rgba(108, 117, 125, 0.3);
}

/* Style pour l'avatar */
.avatar {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}