/*.sidebar {
    width: 280px;
    background-color: #ffffff;
    height: 100vh;
    border-right: 1px solid #E5E7EB;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}*/

/* --- Main Navigation Items --- */
/*.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    color: #6B7280;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    margin-bottom: 6px;
    transition: all 0.2s ease;
}

    .nav-item:hover:not(.active) {
        background-color: #F3F4F6;
        color: #374151;
    }*/

.nav-icon {
    font-size: 1.25rem;
    color: #9CA3AF;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
}

.nav-item:hover:not(.active) .nav-icon {
    color: #6B7280;
}

/* --- Active Parent Item (Settings) --- */
.nav-item.active {
    background-color: #065F46; /* Dark Green */
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(6, 95, 70, 0.2);
}

    .nav-item.active .nav-icon {
        color: #ffffff;
    }

.chevron-icon {
    margin-left: auto;
    font-size: 0.85rem;
    transition: transform 0.3s;
}

/* --- Submenu Tree Styling --- */
.submenu-list {
    list-style: none;
    padding: 0;
    /* 28px perfectly aligns the vertical line with the center of the icons above it */
    margin: 0 0 16px 28px;
}

.submenu-item {
    position: relative;
}

.submenu-link {
    display: block;
    padding: 10px 0 10px 24px;
    color: #6B7280;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

    .submenu-link:hover {
        color: #1F2937;
    }

    /* Active Submenu Item (Location Master) */
    .submenu-link.active {
        color: #059669; /* Green text */
        font-weight: 600;
    }

/* --- CSS Magic for the Curved Tree Lines --- */

/* 1. The curved horizontal branch for EVERY item */
.submenu-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 16px; /* Width of the horizontal branch */
    height: 20px; /* How far down it drops before curving */
    border-left: 2px solid #CBD5E1;
    border-bottom: 2px solid #CBD5E1;
    border-bottom-left-radius: 8px; /* The curve */
}

/* 2. The continuous vertical line dropping down for all items EXCEPT the last one */
.submenu-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 20px; /* Starts exactly where the curve ends */
    left: 0;
    bottom: 0;
    border-left: 2px solid #CBD5E1;
}
