:root {
    --primary-blue: #007bff;
    --light-blue: #4dabf7;
    --grey: #c0c0c0;
}

.logo-img {
    display: flex;
    margin-right: 10px;
}

#navbarOffcanvas {
    z-index: 1050 !important;
}

.offcanvas {
    width: 280px;
}

.offcanvas-body .nav-menu-item {
    width: 100%;
    margin: 5px 0;
    justify-content: flex-start;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #6c757d;
    margin-right: 8px;
    background-size: 40px;
    background-repeat: no-repeat;
    background-position: center;
}

.right-icons {
    display: flex;
    align-items: center;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .nav-menu-item,
    .dropdown-toggle {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .logo-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 900px) {
    .navbar-toggler {
        border: none;
        padding: 4px 8px;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    .offcanvas {
        width: 280px;
    }

    .offcanvas-body .nav-menu-item,
    .offcanvas-body .dropdown-toggle {
        width: 100%;
        margin: 5px 0;
        justify-content: flex-start;
    }

    .offcanvas .dropdown-menu {
        background-color: rgba(255, 255, 255, 0.95);
        margin-left: 20px;
        margin-top: 5px;
    }
}

@media (max-width: 1100px) {
    .layout-top-nav .wrapper .brand-image {
        max-height: 50px !important;
    }
}

@media (min-width: 1101px) and (max-width: 1200px) {
    .layout-top-nav .wrapper .brand-image {
        height: 60px !important;
    }
}

@media (min-width: 1201px) and (max-width: 1300px) {
    .layout-top-nav .wrapper .brand-image {
        height: 70px !important;
    }
}

@media (min-width: 1301px) and (max-width: 1400px) {
    .layout-top-nav .wrapper .brand-image {
        height: 80px !important;
    }
}

@media (min-width: 1401px) and (max-width: 1500px) {
    .layout-top-nav .wrapper .brand-image {
        height: 90px !important;
    }
}

@media (min-width: 1501px) {
    .layout-top-nav .wrapper .brand-image {
        height: 100px !important;
    }
}

/* SOLUTION COMPLÈTE : Breakpoint personnalisé à 1200px */

/* Forcer l'affichage du bouton burger en-dessous de 1200px */
.navbar-toggler {
    display: block !important;
}

/* Masquer le bouton burger SEULEMENT au-dessus de 1200px */
@media (min-width: 1200px) {
    .navbar-toggler {
        display: none !important;
    }
}

@media (max-width: 1200px) {
    .menu-custom {
        display: none !important;
    }
}

.navbar-custom {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
}

.nav-menu-item,
.dropdown-toggle {
    background-color: var(--primary-blue);
    color: white !important;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    margin: 0px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-menu-item:hover,
.dropdown-toggle:hover {
    background-color: var(--light-blue);
    color: white !important;
    transform: translateY(-1px);
}

.dropdown-toggle::after {
    margin-left: 8px;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    margin-top: 5px;
}

.dropdown-item {
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #495057;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-blue);
}

.dropdown-item i {
    margin-right: 10px;
    width: 16px;
    color: #6c757d;
}

.dropdown-divider {
    margin: 8px 0;
}

.nav-menu-item i {
    margin-right: 5px;
}

.icon-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1060;
}

.icon-btn:hover {
    background-color: #f8f9fa;
    color: var(--primary-blue);
}

.icon-btn a {
    text-decoration: none;
}

.user-profile {
    display: flex;
    align-items: center;
    background-color: #c0c0c0;
    border-radius: 25px;
    padding: 5px 15px 5px 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile:hover {
    background-color: #dee2e6;
}

.user-profile a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 0;
}

.user-profile a:hover {
    color: inherit;
    text-decoration: none;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #6c757d;
    margin-right: 8px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
}

.user-name {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

.position-relative {
    position: relative;
}

.nav-link {
    color: #fff;
    background-color: #007bff;
}

.modal {
    z-index: 9999 !important;
}

.navbar-custom button.disabled,
.nav-sidebar .nav-item .nav-link.disabled {
    background-color: rgb(38, 90, 136);
    opacity: 0.65;
    color: white;
    border: 0px;
    border-radius: 6px;
    padding: 8px 16px;
    min-height: 40px;
}

.nav-treeview .nav-link {
    background-color: white;
    color: #007bff;
}

.navbar-custom .nav-item .nav-link,
.navbar-custom .dropdown-menu.show,
.navbar-custom .dropdown-item {
    display: table;
}

.navbar-custom .nav-item.dropdown,
.navbar-custom .nav-item.no-dropdown {
    padding: 3px 5px 0px 5px;
    margin-bottom: 2px;
}

.navbar-custom .navbar-nav .nav-link {
    padding-left: 10px;
    padding-right: 10px;
}

.navbar-custom .nav-item .nav-link {
    word-break: break-all;
    white-space: normal;
}

.bordered {
    border: 1px solid #c0c0c0;
    border-radius: 5px;
    padding: 5px;
}

.configuration-header {
    padding: 5px;
}
