#sidebar-toggle {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1000;
    width: 44px;
    height: 44px;
    background: #FFFFFF;
    border: none;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
    cursor: pointer;
    padding: 0;
    display: block;
}

#sidebar-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333333;
    margin: 5px auto;
}

.sidebar-logo {
    float: left;
    height: 30px;
    width: auto;
    margin-right: 10px;
    display: block;
}

#sidebar {
    position: absolute;
    top: 0;
    bottom: 0;
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
    z-index: 1005;
    width: 300px;
    background: #FFFFFF;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    box-sizing: border-box;
}

#sidebar-header {
    padding: 15px;
    border-bottom: 1px solid #DDDDDD;
    border-bottom: none;
    overflow: hidden;
    height: 60px;
    box-sizing: border-box;
}

.sidebar-title {
    float: left;
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 30px;
    color: #181713;
    margin-top: 4px;
}




/* Remplacement des styles de bouton d'en-tête */
.header-btn {
    float: right;
    width: 36px;
    height: 36px;
    background: #EEEEEE;
    color: #3d3d3d;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: 6px;
}

.header-btn:hover {
    background: #DDDDDD;
}

/* Écrasement des anciennes couleurs rouges */
.btn-close-sidebar {
    background: #EEEEEE;
}

.btn-close-sidebar:hover {
    background: #DDDDDD;
}
/*--------*/

#sidebar-actions {
    height: 140px;
    padding: 15px;
    box-sizing: border-box;
}

.btn-nouveau-trace {
    display: block;
    width: 100%;
    background: #151412;
    color: #20d574;
    border: none;
    border-radius: 12px;
    padding: 8px 16px;
    cursor: pointer;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.btn-nouveau-trace:hover {
    background: #333333;
}

.btn-nouveau-trace .text-left {
    float: left;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 24px;
}

.btn-nouveau-trace .icon-right {
    float: right;
    font-size: 24px;
    font-weight: 200;
    line-height: 24px;
}

/* Force le calcul de la hauteur du bouton contenant des flottants */
.btn-nouveau-trace::after {
    content: "";
    display: block;
    clear: both;
}

.label-recents {
    margin-top: 25px;
    margin-bottom: 10px;
    color: #020200;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 24px;
}

/* Ajustement de la hauteur par rapport aux nouvelles marges */
#project-list-container {
    position: absolute;
    top: 180px;
    bottom: 0;
    left: 0;
    right: 0;
    overflow-y: auto;
}


.project-item {
    padding: 18px 50px 18px 15px;
    border-bottom: 1px solid #EEEEEE;
    cursor: pointer;
    color: #333333;
    font-size: 14px;
    position: relative;
    display: block;
}

.project-item:hover {
    background: #F9F9F9;
}

.project-item.active {
    background: #EAF2F8;
    border-left: 4px solid #2874A6;
    padding-left: 11px;
}

.project-menu-btn {
    position: absolute;
    right: 5px;
    top: 0;
    bottom: 0;
    width: 44px;
    background: none;
    border: none;
    font-size: 22px;
    color: #777777;
    cursor: pointer;
    padding: 0;
    z-index: 2;
}

.project-menu-btn:hover {
    color: #333333;
}

.project-dropdown {
    display: none;
    position: absolute;
    right: 10px;
    top: 45px;
    background: #FFFFFF;
    border: 1px solid #DDDDDD;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 1010;
    width: 150px;
    border-radius: 8px;
    overflow: hidden;
}

.project-dropdown-item {
    padding: 12px 15px;
    font-size: 14px;
    color: #333333;
    border-bottom: 1px solid #EEEEEE;
    cursor: pointer;
}

.project-dropdown-item:last-child {
    border-bottom: none;
}

.project-dropdown-item:hover {
    background: #F5F5F5;
}
