/* Clean Light SaaS Sidebar Theme */
.admin-sidebar {
    width: 260px;
    background: #ffffff; /* White background */
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
    z-index: 1000;
    border-right: 1px solid #e5e7eb; /* Soft border */
    transition: width 0.3s;
}

body.sidebar-minimized .admin-sidebar {
    width: 80px;
}

/* Custom Scrollbar */
.admin-sidebar::-webkit-scrollbar {
    width: 4px;
}
.admin-sidebar::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 10px;
}
.admin-sidebar:hover::-webkit-scrollbar-thumb {
    background: #d1d5db;
}

.sidebar-brand {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #111827; /* Dark text */
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 10px;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-brand i {
    color: #2563eb; /* Blue primary */
    min-width: 24px;
}

body.sidebar-minimized .sidebar-brand {
    padding: 24px 28px; /* Center the icon */
}
body.sidebar-minimized .sidebar-brand span {
    display: none;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 40px 0;
    flex-grow: 1;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    margin: 4px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280; /* Gray text */
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-item a:hover {
    background: #f9fafb;
    color: #111827;
}

.sidebar-item.active a {
    background: #eff6ff; /* Light blue background */
    color: #2563eb; /* Solid blue text */
    font-weight: 600;
}

.sidebar-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #9ca3af;
}

.sidebar-item.active .sidebar-icon {
    color: #2563eb;
}

body.sidebar-minimized .sidebar-item a {
    justify-content: center;
    padding: 12px;
}
body.sidebar-minimized .sidebar-item a span.menu-text {
    display: none;
}
body.sidebar-minimized .sidebar-item a .menu-arrow {
    display: none;
}

/* Submenu / Dropdown Styles */
.has-submenu .submenu {
    display: none;
    list-style: none;
    padding-left: 32px;
    margin: 4px 0;
}

body.sidebar-minimized .has-submenu .submenu {
    display: none !important; /* Hide submenus when minimized */
}

.has-submenu.open .submenu {
    display: block;
}

.submenu .sidebar-item a {
    padding: 8px 12px;
    margin: 2px 12px;
    font-size: 13px;
    background: transparent !important;
}

.submenu .sidebar-item a:hover {
    color: #2563eb;
    background: #f9fafb !important;
}

.menu-arrow {
    margin-left: auto;
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
    color: #9ca3af;
}

.has-submenu.open .menu-arrow {
    transform: rotate(90deg);
}
