.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #d1d5db;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    padding: 0 20px;
    z-index: 2000;
    height: var(--navbar-height);
}

.navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* ==== Menu chính ==== */
.menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
    flex-wrap: wrap; /* Cho phép xuống hàng nếu màn hình hẹp */
}

.menu-item {
    position: relative;
}

.menu-item > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    color: #111827;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.menu-item > a:hover {
    background-color: #f3f4f6;
}

.menu-item > a.active {
    background-color: #dbeafe;
    color: #1e3a8a;
    font-weight: bold;
}

/* ==== Submenu ==== */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    flex-direction: column;
    min-width: 200px;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    list-style: none;
    margin: 0;
    padding: 5px 0;
    border-radius: 5px;
    z-index: 1500;
}

.menu-item:hover > .submenu {
    display: flex;
}

.submenu .menu-item > a {
    padding: 8px 16px;
    font-size: 14px;
    white-space: nowrap;
    color: #111827;
}

.submenu .menu-item > a:hover {
    background-color: #f3f4f6;
    border-radius: 0;
}

/* ==== Submenu cấp 2+ ==== */
.submenu .submenu {
    top: 0;
    left: 100%;
    margin-left: 2px;
    border-left: 1px solid #d1d5db;
    border-radius: 5px;
}

/* ==== Logout Section ==== */
.logout-wrapper {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.logout-button {
    background-color: #ef4444;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.logout-button:hover {
    background-color: #dc2626;
}
