/* ============================================
   MODERN SELLER LAYOUT - NafaPlace
   ============================================ */

:root {
    --primary: #f27a1a;
    --primary-dark: #e06500;
    --secondary: #64748b;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    --sidebar-width: 280px;
    --header-height: 70px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* ============================================
   LAYOUT STRUCTURE
   ============================================ */

.seller-layout {
    min-height: 100vh;
    background: #f8fafc;
}

/* ============================================
   HEADER
   ============================================ */

.seller-header {
    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);
}

.seller-layout .header-content {
    height: 100%;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.seller-layout .header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.seller-layout .header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Brand */
.seller-layout .brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.seller-layout .brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.seller-layout .brand-badge {
    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 */
.seller-layout .btn-menu {
    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;
}

.seller-layout .btn-menu:hover {
    background: #f1f5f9;
}

/* Search Box */
.seller-layout .search-box {
    position: relative;
    width: 300px;
}

.seller-layout .search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.seller-layout .search-box input {
    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;
}

.seller-layout .search-box input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(242, 122, 26, 0.1);
}

/* Header Actions */
.seller-layout .header-action {
    position: relative;
}

.seller-layout .btn-action {
    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;
}

.seller-layout .btn-action:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.seller-layout .badge-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid white;
}

/* Profile Button */
.seller-layout .btn-profile {
    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);
}

.seller-layout .btn-profile:hover {
    background: #f1f5f9;
}

.seller-layout .profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.seller-layout .profile-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

/* ============================================
   DROPDOWNS
   ============================================ */

.seller-layout .dropdown-menu {
    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;
}

.seller-layout .dropdown-header {
    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;
}

.seller-layout .dropdown-item {
    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;
}

.seller-layout .dropdown-item:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.seller-layout .dropdown-item i {
    font-size: 1.1rem;
}

.seller-layout .dropdown-divider {
    margin: 0.5rem 0;
    border-color: #e2e8f0;
}

/* Notification Dropdown */
.seller-layout .notification-dropdown {
    max-width: 380px;
}

.seller-layout .notification-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.seller-layout .notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.seller-layout .notif-content strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #1e293b;
}

.seller-layout .notif-content small {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* Profile Dropdown */
.seller-layout .profile-dropdown {
    min-width: 260px;
}

.seller-layout .profile-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.seller-layout .profile-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    flex-shrink: 0;
}

.seller-layout .profile-info strong {
    display: block;
    color: #1e293b;
    font-size: 0.95rem;
}

.seller-layout .profile-info small {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* ============================================
   SIDEBAR
   ============================================ */

.seller-sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-right: 1px solid #334155;
    overflow-y: auto;
    z-index: 999;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.seller-layout .sidebar-content {
    padding: 1.5rem 1rem;
}

/* Scrollbar */
.seller-sidebar::-webkit-scrollbar {
    width: 6px;
}

.seller-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.seller-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.seller-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Sidebar Offcanvas */
.seller-layout .sidebar-offcanvas {
    width: 280px !important;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

.seller-layout .sidebar-offcanvas .offcanvas-header {
    padding: 1.5rem;
    border-bottom: 1px solid #334155;
}

.seller-layout .sidebar-offcanvas .offcanvas-body {
    padding: 1.5rem 1rem;
    background: transparent;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.seller-main {
    margin-top: var(--header-height);
    margin-left: var(--sidebar-width);
    padding: 2rem;
    min-height: calc(100vh - var(--header-height));
    transition: var(--transition);
}

/* ============================================
   NAV MENU
   ============================================ */

.seller-layout .nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Menu Items */
.seller-layout .menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.seller-layout .menu-item:hover {
    background: rgba(242, 122, 26, 0.15);
    color: #e2e8f0;
    text-decoration: none;
}

.seller-layout .menu-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(242, 122, 26, 0.4);
}

.seller-layout .menu-item i {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.seller-layout .menu-item span {
    flex: 1;
}

/* Menu Sections */
.seller-layout .menu-section {
    margin-bottom: 0.25rem;
}

.seller-layout .menu-section-header {
    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;
}

.seller-layout .menu-section-header:hover {
    background: rgba(242, 122, 26, 0.1);
}

.seller-layout .menu-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 600;
}

.seller-layout .menu-section-title i {
    font-size: 1.15rem;
}

.seller-layout .menu-section-header > i {
    font-size: 0.8rem;
    color: #64748b;
    transition: transform 0.3s ease;
}

/* Submenu */
.seller-layout .menu-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    padding-left: 0.5rem;
}

.seller-layout .menu-submenu.expanded {
    max-height: 500px;
    opacity: 1;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.seller-layout .menu-subitem {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    border-radius: 8px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    margin-bottom: 0.125rem;
}

.seller-layout .menu-subitem:hover {
    background: rgba(242, 122, 26, 0.1);
    color: #e2e8f0;
    padding-left: 2.75rem;
    text-decoration: none;
}

.seller-layout .menu-subitem.active {
    background: rgba(242, 122, 26, 0.15);
    color: #f59e0b !important;
    font-weight: 600;
    border-left: 3px solid var(--primary);
}

.seller-layout .menu-subitem.active::before {
    content: '';
    position: absolute;
    left: 1.75rem;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.seller-layout .menu-subitem i {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Menu Divider */
.seller-layout .menu-divider {
    height: 1px;
    background: #334155;
    margin: 0.75rem 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991.98px) {
    .seller-sidebar {
        display: none !important;
    }
    
    .seller-main {
        margin-left: 0;
        padding: 1.5rem 1rem;
    }
    
    .seller-layout .search-box {
        width: 200px;
    }
}

@media (max-width: 767.98px) {
    .seller-layout .header-content {
        padding: 0 1rem;
        gap: 0.5rem;
    }
    
    .seller-layout .brand-text {
        font-size: 1.1rem;
    }
    
    .seller-layout .brand-badge {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .seller-main {
        padding: 1rem;
    }
    
    .seller-layout .btn-action {
        padding: 0.5rem;
        font-size: 1.15rem;
    }
    
    .seller-layout .profile-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    :root {
        --header-height: 60px;
    }
    
    .seller-layout .brand-text {
        display: none;
    }
    
    .seller-layout .brand i {
        font-size: 1.5rem;
    }
    
    .seller-layout .header-content {
        padding: 0 0.75rem;
    }
    
    .seller-layout .dropdown-menu {
        min-width: 240px;
        max-width: calc(100vw - 2rem);
    }
    
    .seller-layout .notification-dropdown {
        max-width: calc(100vw - 2rem);
    }
}
