/* assets/css/navbar.css - সম্পূর্ণ নেভিগেশন বার সিএসএস ও স্টাইল */
:root {
    --bg-color: #e0e8f3;
    --card-bg: #e0e8f3;
    --text-color: #2c385e;
    --text-muted: #7a869a;
    --border-color: #cbd5e1;
    --primary: #2563eb;
    --nm-shadow-out: 6px 6px 12px rgba(163, 177, 198, 0.6), -6px -6px 12px rgba(255, 255, 255, 0.8);
    --nm-shadow-in: inset 4px 4px 8px rgba(163, 177, 198, 0.6), inset -4px -4px 8px rgba(255, 255, 255, 0.8);
    --nm-shadow-nav: 0 4px 15px rgba(163, 177, 198, 0.5);
}

body.dark-theme {
    --bg-color: #1e2530;
    --card-bg: #1e2530;
    --text-color: #e2e8f0;
    --text-muted: #8a99ad;
    --border-color: #334155;
    --primary: #38bdf8;
    --nm-shadow-out: 6px 6px 12px rgba(15, 20, 26, 0.7), -4px -4px 10px rgba(42, 51, 66, 0.6);
    --nm-shadow-in: inset 4px 4px 8px rgba(15, 20, 26, 0.8), inset -4px -4px 8px rgba(42, 51, 66, 0.6);
    --nm-shadow-nav: 0 4px 15px rgba(15, 20, 26, 0.5);
}

.navbar {
    background-color: rgba(224, 232, 243, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-sizing: border-box;
    box-shadow: var(--nm-shadow-nav);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

body.dark-theme .navbar {
    background-color: rgba(30, 37, 48, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.nav-logo {
    color: var(--text-color);
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.25s ease;
}

/* ট্রান্সপারেন্ট গ্লাসফিক্স নেভবার ড্রপডাউন */
.nav-container {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 290px;
    max-width: 85vw;
    background: rgba(224, 232, 243, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    border-bottom-right-radius: 18px;
    padding: 20px 16px;
    gap: 16px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1002;
    transition: background 0.3s, box-shadow 0.3s;
}

body.dark-theme .nav-container {
    background: rgba(30, 37, 48, 0.85);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.nav-container.active {
    display: flex;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
    padding-bottom: 30px;
    margin: 0;
    padding-left: 0;
}

.nav-menu li {
    list-style: none;
}

.nav-menu li a {
    color: var(--text-color);
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    transition: all 0.2s ease;
    user-select: none;
}

.nav-menu li a:hover {
    box-shadow: var(--nm-shadow-in);
    color: var(--primary);
    background: rgba(255, 255, 255, 0.4);
}

body.dark-theme .nav-menu li a:hover {
    background: rgba(255, 255, 255, 0.06);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

.btn-nav-search {
    background: var(--bg-color);
    color: var(--text-color);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--nm-shadow-out);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.2s ease;
}

.btn-nav-search:hover,
.btn-nav-search.active {
    box-shadow: var(--nm-shadow-in);
    color: var(--primary);
}

.btn-theme-toggle {
    background: var(--bg-color);
    color: #fbbf24;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--nm-shadow-out);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

body.dark-theme .btn-theme-toggle {
    color: #38bdf8;
}

.btn-theme-toggle:hover {
    box-shadow: var(--nm-shadow-in);
}

.btn-profile-toggle {
    background: var(--bg-color);
    color: var(--text-color);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--nm-shadow-out);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
    overflow: hidden;
    padding: 0;
}

.btn-profile-toggle:hover {
    box-shadow: var(--nm-shadow-in);
    color: var(--primary);
}

#navbar-search-holder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}

.nav-menu-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 12px;
    }
    .nav-left {
        gap: 8px;
    }
    .nav-logo {
        font-size: 16px !important;
        transform: scale(0.9);
    }
    .nav-actions {
        gap: 8px !important;
    }
    .btn-nav-search,
    .btn-theme-toggle,
    .btn-profile-toggle {
        width: 38px !important;
        height: 38px !important;
        font-size: 14px !important;
    }
}

/* =======================================================
   প্রোফাইল সাইডবার ও ব্যাকড্রপ ওভারলে স্টাইল
   ======================================================= */
:root {
    --sidebar-width: 380px;
}

.sidebar-overlay { 
    position: fixed; 
    top: 70px; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.25); 
    backdrop-filter: blur(4px); 
    -webkit-backdrop-filter: blur(4px);
    z-index: 998; 
    opacity: 0; 
    pointer-events: none; 
    transition: 0.3s ease; 
}
.sidebar-overlay.open { 
    opacity: 1; 
    pointer-events: auto; 
}

.sidebar-panel { 
    position: fixed; 
    top: 70px; 
    bottom: 0;
    left: calc(-1 * var(--sidebar-width, 380px)); 
    width: var(--sidebar-width, 380px); 
    max-width: 88vw;
    height: calc(100vh - 70px); 
    height: calc(100svh - 70px);
    height: calc(100dvh - 70px);
    background: var(--card-bg, #e0e8f3); 
    display: flex; 
    flex-direction: column; 
    z-index: 999; 
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1); 
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.12); 
    overflow: hidden;
    box-sizing: border-box;
}
.sidebar-panel.open { 
    left: 0; 
}

.btn-sidebar-close { 
    position: absolute; 
    top: 18px; 
    right: 18px; 
    background: none; 
    border: none; 
    font-size: 20px; 
    color: var(--text-muted, #7a869a); 
    cursor: pointer; 
    z-index: 10;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}
.btn-sidebar-close:hover { 
    background: rgba(0, 0, 0, 0.06); 
    color: var(--text-color, #2c385e); 
}
body.dark-theme .btn-sidebar-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.sidebar-header { 
    padding: 22px 20px 14px 20px; 
    text-align: center; 
    flex-shrink: 0; 
    border-bottom: 1px solid rgba(0, 0, 0, 0.06); 
}
body.dark-theme .sidebar-header { 
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); 
}

.profile-avatar-wrapper { 
    position: relative; 
    width: 80px; 
    height: 80px; 
    margin: 0 auto 12px; 
    padding: 4px; 
    background: var(--bg-color, #e0e8f3); 
    border-radius: 50%; 
    box-shadow: var(--nm-shadow-in, inset 4px 4px 8px rgba(163, 177, 198, 0.6), inset -4px -4px 8px rgba(255, 255, 255, 0.8)); 
    cursor: pointer; 
    transition: transform 0.2s ease; 
}
.profile-avatar-wrapper:hover { 
    transform: scale(1.05); 
}
.profile-avatar-wrapper img { 
    width: 100%; 
    height: 100%; 
    border-radius: 50%; 
    object-fit: cover; 
    display: block; 
}

.sidebar-header h3 { 
    font-size: 15px; 
    font-weight: 700; 
    color: var(--text-color, #2c385e); 
}
.sidebar-header p { 
    color: var(--text-muted, #7a869a); 
    font-size: 12px; 
    margin-top: 2px; 
}

.sidebar-menu-list { 
    flex: 1 1 auto; 
    min-height: 0; 
    overflow-y: auto; 
    padding: 15px; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    -webkit-overflow-scrolling: touch; 
}
.sidebar-menu-item { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 12px 14px; 
    border-radius: 14px; 
    cursor: pointer; 
    transition: all 0.2s ease; 
    background: var(--bg-color, #e0e8f3); 
    box-shadow: var(--nm-shadow-out, 6px 6px 12px rgba(163, 177, 198, 0.6), -6px -6px 12px rgba(255, 255, 255, 0.8)); 
}
.sidebar-menu-item:hover, 
.sidebar-menu-item.active { 
    box-shadow: var(--nm-shadow-in, inset 4px 4px 8px rgba(163, 177, 198, 0.6), inset -4px -4px 8px rgba(255, 255, 255, 0.8)); 
    color: var(--primary, #2563eb); 
}
.sidebar-menu-item .menu-icon { 
    width: 36px; 
    height: 36px; 
    border-radius: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 15px; 
    flex-shrink: 0; 
}
.sidebar-menu-item .menu-text { 
    flex: 1; 
}
