/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* ============================================
   MODERN ADMIN LAYOUT - NafaPlace
   ============================================ */

:root[b-43kkgpgkhs] {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #64748b;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    --sidebar-width: 280px;
    --header-height: 70px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

*[b-43kkgpgkhs] {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   LAYOUT STRUCTURE
   ============================================ */

.admin-layout[b-43kkgpgkhs] {
    min-height: 100vh;
    background: #f8fafc;
}

/* ============================================
   HEADER
   ============================================ */

.admin-header[b-43kkgpgkhs] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-content[b-43kkgpgkhs] {
    height: 100%;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-left[b-43kkgpgkhs] {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-right[b-43kkgpgkhs] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Brand */
.brand[b-43kkgpgkhs] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-text[b-43kkgpgkhs] {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.brand-badge[b-43kkgpgkhs] {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Menu Button */
.btn-menu[b-43kkgpgkhs] {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: #1e293b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-menu:hover[b-43kkgpgkhs] {
    background: #f1f5f9;
}

/* Search Box */
.search-box[b-43kkgpgkhs] {
    position: relative;
    width: 300px;
}

.search-box i[b-43kkgpgkhs] {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.search-box input[b-43kkgpgkhs] {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--transition);
    background: #f8fafc;
}

.search-box input:focus[b-43kkgpgkhs] {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Header Actions */
.header-action[b-43kkgpgkhs] {
    position: relative;
}

.btn-action[b-43kkgpgkhs] {
    position: relative;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #475569;
    cursor: pointer;
    padding: 0.625rem;
    border-radius: 10px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-action:hover[b-43kkgpgkhs] {
    background: #f1f5f9;
    color: var(--primary);
}

.badge-dot[b-43kkgpgkhs] {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid white;
}

/* Profile Button */
.btn-profile[b-43kkgpgkhs] {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-profile:hover[b-43kkgpgkhs] {
    background: #f1f5f9;
}

.profile-avatar[b-43kkgpgkhs] {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
}

.profile-name[b-43kkgpgkhs] {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

/* ============================================
   DROPDOWNS
   ============================================ */

.dropdown-menu[b-43kkgpgkhs] {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 0.5rem;
    min-width: 280px;
    margin-top: 0.5rem !important;
}

.dropdown-header[b-43kkgpgkhs] {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -0.5rem -0.5rem 0.5rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    background: #f8fafc;
}

.dropdown-item[b-43kkgpgkhs] {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: none;
    width: 100%;
    text-align: left;
    background: none;
    color: #475569;
    font-size: 0.9rem;
}

.dropdown-item:hover[b-43kkgpgkhs] {
    background: #f1f5f9;
    color: var(--primary);
}

.dropdown-item i[b-43kkgpgkhs] {
    font-size: 1.1rem;
}

.dropdown-divider[b-43kkgpgkhs] {
    margin: 0.5rem 0;
    border-color: #e2e8f0;
}

/* Notification Dropdown */
.notification-dropdown[b-43kkgpgkhs] {
    max-width: 380px;
}

.notification-item[b-43kkgpgkhs] {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.notif-icon[b-43kkgpgkhs] {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.notif-content strong[b-43kkgpgkhs] {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #1e293b;
}

.notif-content small[b-43kkgpgkhs] {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* Profile Dropdown */
.profile-dropdown[b-43kkgpgkhs] {
    min-width: 260px;
}

.profile-info[b-43kkgpgkhs] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-avatar-large[b-43kkgpgkhs] {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.profile-info strong[b-43kkgpgkhs] {
    display: block;
    color: #1e293b;
    font-size: 0.95rem;
}

.profile-info small[b-43kkgpgkhs] {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* ============================================
   SIDEBAR
   ============================================ */

.admin-sidebar[b-43kkgpgkhs] {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: linear-gradient(180deg, #f0f7ff 0%, #e8f2ff 100%);
    border-right: 1px solid #d4e5f7;
    overflow-y: auto;
    z-index: 999;
    box-shadow: 2px 0 8px rgba(59, 130, 246, 0.08);
}

.sidebar-content[b-43kkgpgkhs] {
    padding: 1.5rem 1rem;
}

/* Scrollbar */
.admin-sidebar[b-43kkgpgkhs]::-webkit-scrollbar {
    width: 6px;
}

.admin-sidebar[b-43kkgpgkhs]::-webkit-scrollbar-track {
    background: rgba(59, 130, 246, 0.05);
}

.admin-sidebar[b-43kkgpgkhs]::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.25);
    border-radius: 10px;
}

.admin-sidebar[b-43kkgpgkhs]::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.4);
}

/* Sidebar Offcanvas */
.sidebar-offcanvas[b-43kkgpgkhs] {
    width: 280px !important;
    background: linear-gradient(180deg, #f0f7ff 0%, #e8f2ff 100%) !important;
}

.sidebar-offcanvas .offcanvas-header[b-43kkgpgkhs] {
    padding: 1.5rem;
    border-bottom: 1px solid #d4e5f7;
    background: #f0f7ff;
}

.sidebar-offcanvas .offcanvas-body[b-43kkgpgkhs] {
    padding: 1.5rem 1rem;
    background: transparent;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.admin-main[b-43kkgpgkhs] {
    margin-top: var(--header-height);
    margin-left: var(--sidebar-width);
    padding: 2rem;
    min-height: calc(100vh - var(--header-height));
    transition: var(--transition);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991.98px) {
    .admin-sidebar[b-43kkgpgkhs] {
        display: none !important;
    }
    
    .admin-main[b-43kkgpgkhs] {
        margin-left: 0;
        padding: 1.5rem 1rem;
    }
    
    .search-box[b-43kkgpgkhs] {
        width: 200px;
    }
}

@media (max-width: 767.98px) {
    .header-content[b-43kkgpgkhs] {
        padding: 0 1rem;
        gap: 0.5rem;
    }
    
    .brand-text[b-43kkgpgkhs] {
        font-size: 1.1rem;
    }
    
    .brand-badge[b-43kkgpgkhs] {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .admin-main[b-43kkgpgkhs] {
        padding: 1rem;
    }
    
    .btn-action[b-43kkgpgkhs] {
        padding: 0.5rem;
        font-size: 1.15rem;
    }
    
    .profile-avatar[b-43kkgpgkhs] {
        width: 32px;
        height: 32px;
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    :root[b-43kkgpgkhs] {
        --header-height: 60px;
    }
    
    .brand-text[b-43kkgpgkhs] {
        display: none;
    }
    
    .brand i[b-43kkgpgkhs] {
        font-size: 1.5rem;
    }
    
    .header-content[b-43kkgpgkhs] {
        padding: 0 0.75rem;
    }
    
    .dropdown-menu[b-43kkgpgkhs] {
        min-width: 240px;
        max-width: calc(100vw - 2rem);
    }
    
    .notification-dropdown[b-43kkgpgkhs] {
        max-width: calc(100vw - 2rem);
    }
}

/* ============================================
   UTILITIES
   ============================================ */

.shadow[b-43kkgpgkhs] {
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06) !important;
}

/* Blazor Error UI */
#blazor-error-ui[b-43kkgpgkhs] {
    background: #ef4444;
    color: white;
    bottom: 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 9999;
}

#blazor-error-ui .dismiss[b-43kkgpgkhs] {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 1.5rem;
    background: none;
    border: none;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* ============================================
   MODERN NAV MENU - NafaPlace Admin
   ============================================ */

.nav-menu[b-gdoay761pe] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* ============================================
   MENU ITEMS
   ============================================ */

.menu-item[b-gdoay761pe] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: #1e40af;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.menu-item:hover[b-gdoay761pe] {
    background: rgba(59, 130, 246, 0.15);
    color: #1e3a8a;
}

.menu-item.active[b-gdoay761pe] {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.menu-item i[b-gdoay761pe] {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.menu-item span[b-gdoay761pe] {
    flex: 1;
}

/* ============================================
   MENU SECTIONS
   ============================================ */

.menu-section[b-gdoay761pe] {
    margin-bottom: 0.25rem;
}

.menu-section-header[b-gdoay761pe] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s ease;
    user-select: none;
}

.menu-section-header:hover[b-gdoay761pe] {
    background: rgba(59, 130, 246, 0.12);
}

.menu-section-title[b-gdoay761pe] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1e40af;
    font-size: 0.9rem;
    font-weight: 600;
}

.menu-section-title i[b-gdoay761pe] {
    font-size: 1.15rem;
}

.menu-section-header > i[b-gdoay761pe] {
    font-size: 0.8rem;
    color: #3b82f6;
    transition: transform 0.3s ease;
}

/* ============================================
   SUBMENU
   ============================================ */

.menu-submenu[b-gdoay761pe] {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    padding-left: 0.5rem;
}

.menu-submenu.expanded[b-gdoay761pe] {
    max-height: 500px;
    opacity: 1;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.menu-subitem[b-gdoay761pe] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    border-radius: 8px;
    color: #3b5998;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    margin-bottom: 0.125rem;
}

.menu-subitem:hover[b-gdoay761pe] {
    background: rgba(59, 130, 246, 0.15);
    color: #1e40af;
    padding-left: 2.75rem;
}

.menu-subitem.active[b-gdoay761pe] {
    background: rgba(59, 130, 246, 0.2);
    color: #1e40af;
    font-weight: 600;
    border-left: 3px solid #3b82f6;
}

.menu-subitem.active[b-gdoay761pe]::before {
    content: '';
    position: absolute;
    left: 1.75rem;
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
}

.menu-subitem i[b-gdoay761pe] {
    font-size: 1rem;
    flex-shrink: 0;
}

/* ============================================
   DIVIDER
   ============================================ */

.menu-divider[b-gdoay761pe] {
    height: 1px;
    background: #e2e8f0;
    margin: 0.75rem 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991.98px) {
    .nav-menu[b-gdoay761pe] {
        padding: 0;
    }
    
    .menu-item[b-gdoay761pe] {
        border-radius: 8px;
    }
    
    .menu-section-header[b-gdoay761pe] {
        border-radius: 8px;
    }
}

/* ============================================
   SCROLLBAR (for long menus)
   ============================================ */

.nav-menu[b-gdoay761pe]::-webkit-scrollbar {
    width: 6px;
}

.nav-menu[b-gdoay761pe]::-webkit-scrollbar-track {
    background: transparent;
}

.nav-menu[b-gdoay761pe]::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.nav-menu[b-gdoay761pe]::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideIn-b-gdoay761pe {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-submenu.expanded .menu-subitem[b-gdoay761pe] {
    animation: slideIn-b-gdoay761pe 0.3s ease forwards;
}

.menu-submenu.expanded .menu-subitem:nth-child(1)[b-gdoay761pe] { animation-delay: 0.05s; }
.menu-submenu.expanded .menu-subitem:nth-child(2)[b-gdoay761pe] { animation-delay: 0.1s; }
.menu-submenu.expanded .menu-subitem:nth-child(3)[b-gdoay761pe] { animation-delay: 0.15s; }
.menu-submenu.expanded .menu-subitem:nth-child(4)[b-gdoay761pe] { animation-delay: 0.2s; }
