/* Menu Container */
.menu-container {
    padding: 0.5rem 0;
}

/* Menu Header */
.menu-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    color: #13322C;
    font-weight: 500;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.menu-header:hover {
    background-color: rgba(135, 165, 173, 0.2);
}

.menu-header i {
    margin-right: 10px;
}

.menu-header i.bi-chevron-down {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.menu-header span {
    flex-grow: 1;
}

/* Menu Content */
.menu-content {
    margin-left: 15px;
    padding-left: 15px;
    border-left: 2px solid rgba(135, 165, 173, 0.3);
}

.menu-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-content li {
    padding: 8px 10px;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #13322C;
}

.menu-content li:hover {
    background-color: rgba(135, 165, 173, 0.2);
}

.menu-content li.active {
    color: #4A7975;
    font-weight: 600;
}

.menu-content li i.bi-dot {
    font-size: 1.5rem;
    margin-right: 5px;
}

.menu-content a {
    color: #13322C;
    text-decoration: none;
    display: flex;
    align-items: center;
    width: 100%;
}

.menu-content a:hover {
    color: #4A7975;
}

/* Styles pour les listes personnalisées dans la sidebar */
.cloud-list, .project-list {
    max-height: 300px;
    overflow-y: auto;
}

.cloud-list .list-group-item, .project-list .list-group-item {
    padding: 8px 10px;
    border: none;
    border-radius: 0;
    background-color: transparent;
}

.cloud-list .list-group-item:hover, .project-list .list-group-item:hover {
    background-color: rgba(135, 165, 173, 0.2);
}

.cloud-list .list-group-item.active, .project-list .list-group-item.active {
    background-color: #4A7975;
    color: white;
}

.cloud-list .list-group-item a, .project-list .list-group-item a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    width: 100%;
}

.cloud-list .list-group-item i, .project-list .list-group-item i {
    margin-right: 5px;
}

/* Scroll personnalisé pour les listes */
.cloud-list::-webkit-scrollbar, .project-list::-webkit-scrollbar {
    width: 5px;
}

.cloud-list::-webkit-scrollbar-track, .project-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.cloud-list::-webkit-scrollbar-thumb, .project-list::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

/* Troncature du texte pour les noms longs */
.cloud-list .list-group-item a, .project-list .list-group-item a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Rotation des flèches */
.bi-chevron-down {
    transition: transform 0.3s ease;
}

.bi-chevron-down.rotated {
    transform: rotate(180deg);
}

/* Styles pour les dropdowns personnalisés */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.custom-dropdown button {
    text-align: left;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    padding: 0.375rem 0.75rem;
    font-size: 14px;
}

.custom-dropdown button:hover,
.custom-dropdown button:focus {
    background-color: #e9ecef;
}

.custom-dropdown button span {
    display: inline-block;
    max-width: calc(100% - 20px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0 0 0.25rem 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.custom-dropdown-menu .list-group {
    border-radius: 0;
}

.custom-dropdown-menu .list-group-item {
    padding: 0.5rem 0.75rem;
    font-size: 14px;
    border: none;
    border-radius: 0;
}

.custom-dropdown-menu .list-group-item:hover {
    background-color: rgba(135, 165, 173, 0.2);
}

.custom-dropdown-menu .list-group-item.active {
    background-color: #4A7975;
    color: white;
}

/* Scroll personnalisé pour les menus déroulants */
.custom-dropdown-menu::-webkit-scrollbar {
    width: 5px;
}

.custom-dropdown-menu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.custom-dropdown-menu::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

/* Styles pour les dropdowns Bootstrap dans la sidebar */
.sidebar .dropdown-toggle {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #13322C;
    font-size: 14px;
}

.sidebar .dropdown-toggle:focus,
.sidebar .dropdown-toggle:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #13322C;
}

.sidebar .dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
    padding: 0;
}

.sidebar .dropdown-item {
    padding: 8px 15px;
    font-size: 14px;
    color: #13322C;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar .dropdown-item:hover {
    background-color: rgba(135, 165, 173, 0.2);
}

.sidebar .dropdown-item.active {
    background-color: #4A7975;
    color: white;
}

/* Style pour le bouton avec texte tronqué */
.sidebar .dropdown-toggle span.text-truncate {
    display: inline-block;
    max-width: calc(100% - 20px); /* Ajuster en fonction de la taille de l'icône */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Styles pour les listes de liens directs dans la sidebar */
.direct-links {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
    max-height: 300px;
    overflow-y: auto;
}

.direct-links .list-group-item {
    padding: 8px 10px;
    font-size: 14px;
    border-left: none;
    border-right: none;
    border-top: none;
}

.direct-links .list-group-item:last-child {
    border-bottom: none;
}

.direct-links .list-group-item.current-selection {
    background-color: #f8f9fa;
    font-weight: 500;
    color: #13322C;
}

.direct-links .list-group-item a {
    color: #13322C;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.direct-links .list-group-item:hover {
    background-color: rgba(135, 165, 173, 0.2);
}

/* Scrollbar style for direct links */
.direct-links::-webkit-scrollbar {
    width: 5px;
}

.direct-links::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.direct-links::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
} 