/* ==========================================================
   TOP NAVBAR — Option B: White navbar + dark sidebar
========================================================== */
.top-navbar {
    height: 70px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* LEFT */
.navbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #4a5568;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 18px;
    line-height: 1;
    transition: background 180ms, color 180ms;
}

.sidebar-toggle:hover {
    background: #f0f4f8;
    color: #1e2d40;
}

.navbar-logo {
    height: 42px;
    width: auto;
}

/* CENTER */
.navbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 30px;
}

.search-box {
    width: 100%;
    max-width: 500px;
    border: 1px solid #e2e8f0;
    outline: none;
    padding: 9px 15px;
    border-radius: 30px;
    background: #f7f9fc;
    color: #1a202c;
    font-size: 14px;
    transition: border-color 180ms, box-shadow 180ms;
}

.search-box::placeholder {
    color: #a0aec0;
}

.search-box:focus {
    border-color: #5AB432;
    box-shadow: 0 0 0 3px rgba(22, 180, 174, 0.12);
    background: #fff;
}

/* RIGHT */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-right > a {
    color: #4a5568;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    padding: 6px;
    border-radius: 8px;
}

.navbar-right > a:hover {
    color: #5AB432;
    transform: translateY(-1px);
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 15px;
    border-left: 1px solid #e2e8f0;
}

/* Avatar */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    /* background: #16b4ae; */
    background:#5AB432;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

/* User Name */
.user-name {
    color: #1a202c;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.user-role {
    color: #718096;
    font-size: 12px;
    line-height: 1.2;
}

/* Dropdown */
.user-dropdown {
    color: #1a202c !important;
}

.user-dropdown .dropdown-toggle {
    color: inherit !important;
    text-decoration: none;
}

.user-dropdown .dropdown-toggle:hover {
    text-decoration: none;
}

.user-dropdown .dropdown-toggle::after {
    display: none;
}

.user-dropdown .dropdown-menu {
    min-width: 220px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    z-index: 1051;
    margin-top: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}

.user-dropdown .dropdown-item {
    padding: 10px 15px;
    font-size: 14px;
    color: #2d3748;
}

.user-dropdown .dropdown-item:hover {
    background: #f7f9fc;
    color: #1a202c;
}

.user-dropdown .dropdown-divider {
    margin: 5px 0;
    border-color: #e2e8f0;
}

/* ==========================================================
   MOBILE
========================================================== */
@media (max-width: 768px) {
    .top-navbar {
        padding: 0 15px;
    }

    .navbar-center {
        display: none;
    }

    .user-role {
        display: none;
    }

    .user-name {
        display: none;
    }

    .navbar-logo {
        height: 36px;
    }

    .navbar-right {
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .navbar-right > a {
        display: none;
    }

    .navbar-logo {
        height: 32px;
    }

    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .user-info {
        display: none;
    }
}