.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 24px;
    background: linear-gradient(135deg, #1B7B73 0%, #145A53 100%);
    border-bottom: none; 
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 32px;
}
.navbar .logo {   
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.nav-logo-img {
    height: 38px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}
.navbar .logo span {
    color: #A7F3D0; 
}
.navbar-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.navbar-links li a {
    color: #E2E8F0; 
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s;
}

.navbar-links li a:hover {
    color: #FFFFFF; 
}

@media (max-width: 900px) {
    .navbar-links {
        display: none;
    }
}

.sidebar {
    position: fixed;
    top: 0;
    right: -270px;
    width: 270px;
    height: 100vh;
    background: #FFFFFF; 
    border-left: 1px solid #E5E7EB; 
    z-index: 200;
    transition: 0.4s ease;
    overflow-y: auto;
}

.sidebar.open {
    right: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
    border-bottom: 1px solid #E5E7EB;  
}

.sidebar-header .header-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.sidebar-toggler {
    background: transparent;
    border: none;
    color: #111827;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: background 0.2s;
}

.sidebar-toggler:hover {
    background: #F3F4F6;
}
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5); 
    z-index: 150;
}

.sidebar-overlay.active {
    display: block;
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 81px);
    padding: 12px 0;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    color: #4B5563; 
    text-decoration: none;
    border-radius: 8px;
    margin: 2px 10px;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.nav-link:hover {
    background: #F3F4F6;
    color: #1B7B73; 
}

.nav-icon {
    font-size: 20px;
    flex-shrink: 0;
}
.secondary-nav {
    margin-top: auto;
    border-top: 1px solid #E5E7EB; 
    padding-top: 8px;
}
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.search-toggle,
.menu-toggler {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #FFFFFF;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.25s ease;
}

.search-toggle:hover,
.menu-toggler:hover {
    background: rgba(255, 255, 255, 0.15); 
}

.search-toggle .material-symbols-rounded,
.menu-toggler .material-symbols-rounded {
    font-size: 24px;
}
.search-wrapper {
    position: relative;
}

.search-box {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    display: none;
    z-index: 300;
}
.search-box.active {
    display: block;
}
.search-box form {
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    background: #FFFFFF; 
    border: 1px solid #E5E7EB; 
    border-radius: 10px;
    padding: 0 6px 0 14px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.1); 
    box-sizing: border-box;
}
.search-box input {
    flex: 1;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #111827; 
    font-size: 14px;
}

.search-box input::placeholder {
    color: #9CA3AF;
}

.search-box form button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #F3F4F6;
    color: #111827;
    cursor: pointer;
    flex-shrink: 0;
}

.search-box form button:hover {
    background: #E5E7EB;
}

.search-box form button .material-symbols-rounded {
    font-size: 18px;
}

@media (max-width: 480px) {
    .search-box {
        width: calc(100vw - 32px);
        right: -8px;
    }
}