/* =============================================================================
   Jadox — Admin Staff Panel Layout Stylesheet (Chronos-Deck Redesign)
   ============================================================================= */

*, *::before, *::after { box-sizing: border-box; }

html {
    background-color: var(--bg-main) !important;
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
}

body {
    background-color: var(--bg-main);
    background-image: radial-gradient(var(--bg-grid) 1px, transparent 1px);
    background-size: 16px 16px;
    min-height: 100vh;
    color: var(--text-main);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    position: relative;
}

/* Ambient aurora globes */
.ambient-aurora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.aurora-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.06;
}
.aurora-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    top: -80px;
    left: -100px;
}
.aurora-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-purple) 0%, transparent 70%);
    bottom: -100px;
    right: -80px;
}

/* Layout structure */
.member-layout-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    max-width: 100% !important;
    width: 100% !important;
}

/* Sidebar (Sleek Dark Matte V3) */
.member-sidebar {
    width: 270px;
    background: #090a0d;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 100;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), left 0.3s, transform 0.3s;
    overflow: hidden;
    flex-shrink: 0;
}

.member-sidebar.collapsed {
    width: 72px;
}

/* Sidebar Header */
.sidebar-header {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: var(--neo-border);
    flex-shrink: 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.05rem;
    white-space: nowrap;
    letter-spacing: 0.3px;
    font-family: var(--font-heading);
}

.member-sidebar.collapsed .brand-text {
    opacity: 0;
    pointer-events: none;
    display: none;
}

.sidebar-brand img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
    border: var(--neo-border);
    flex-shrink: 0;
}

.sidebar-toggle-btn {
    background: rgba(255, 255, 255, 0.03);
    border: var(--neo-border);
    color: var(--text-dim);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: var(--transition-standard);
    flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-main);
}

/* User profile card inside sidebar */
.sidebar-user-profile {
    padding: 16px;
    border-bottom: var(--neo-border);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-standard);
    flex-shrink: 0;
}

.member-sidebar.collapsed .sidebar-user-profile {
    padding: 16px 10px;
    flex-direction: column;
    gap: 6px;
}

.user-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.sidebar-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}

.user-level-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: var(--color-primary);
    color: white;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 8px;
    border: 1.5px solid var(--bg-main);
}

.user-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.member-sidebar.collapsed .user-details {
    display: none;
}

.user-name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-coins {
    font-size: 0.75rem;
    color: #fbbf24;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

/* Nav sections */
.sidebar-navigation {
    flex-grow: 1;
    padding: 12px 8px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-navigation::-webkit-scrollbar {
    width: 4px;
}
.sidebar-navigation::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

.nav-section-title {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    padding: 12px 10px 5px 10px;
    white-space: nowrap;
    font-family: var(--font-mono);
}

.member-sidebar.collapsed .nav-section-title {
    display: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--border-radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    transition: var(--transition-standard);
    cursor: pointer;
    border: 1px solid transparent;
    background: none;
    width: 100%;
    text-align: left;
}

.nav-item:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
    color: var(--color-primary);
    background: rgba(88, 101, 242, 0.08);
    border-color: rgba(88, 101, 242, 0.15);
}

.nav-icon {
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.nav-text {
    white-space: nowrap;
    overflow: hidden;
}

.member-sidebar.collapsed .nav-text {
    display: none;
}

/* Dropdown groups inside Sidebar V3 */
.sidebar-dropdown-group {
    display: flex;
    flex-direction: column;
}

.nav-dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 6px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-standard);
    font-family: var(--font-body);
}

.nav-dropdown-trigger:hover {
    color: var(--text-muted);
}

.dropdown-chevron {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
    color: var(--text-dim);
}

.sidebar-dropdown-group.expanded .dropdown-chevron {
    transform: rotate(90deg);
    color: var(--text-muted);
}

.sidebar-dropdown-content {
    display: none;
    flex-direction: column;
    gap: 2px;
}

.sidebar-dropdown-group.expanded .sidebar-dropdown-content {
    display: flex;
}

/* Collapsed Sidebar overrides for dropdown groups */
.member-sidebar.collapsed .nav-dropdown-trigger {
    display: none;
}

.member-sidebar.collapsed .sidebar-dropdown-content {
    display: flex !important;
}

.sidebar-dropdown-wrap {
    display: flex;
    flex-direction: column;
}

.dropdown-trigger-btn {
    position: relative;
}

.arrow-icon {
    margin-left: auto;
    font-size: 0.7rem;
    transition: transform 0.2s;
    color: var(--text-dim);
}

.member-sidebar.collapsed .arrow-icon {
    display: none;
}

.sidebar-dropdown-wrap.expanded .arrow-icon {
    transform: rotate(180deg);
}

.dropdown-items-container {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding-left: 16px;
    margin-top: 3px;
    border-left: 1.5px solid rgba(255,255,255,0.05);
    margin-left: 20px;
}

.sidebar-dropdown-wrap.expanded .dropdown-items-container {
    display: flex;
}

.member-sidebar.collapsed .dropdown-items-container {
    display: none !important;
}

.dropdown-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-dim);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-standard);
}

.dropdown-nav-item:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.dropdown-nav-item.active {
    color: var(--color-primary);
    background: rgba(99, 102, 241, 0.08);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 12px 8px;
    border-top: var(--neo-border);
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.sidebar-logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--border-radius-sm);
    color: var(--color-accent);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    transition: var(--transition-standard);
}

.sidebar-logout-btn:hover {
    background: rgba(244, 63, 94, 0.08);
}

.staff-access-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--border-radius-sm);
    color: var(--color-secondary);
    background: rgba(16, 185, 129, 0.07);
    border: 1px solid rgba(16, 185, 129, 0.15);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    transition: var(--transition-standard);
}

.staff-access-btn:hover {
    background: rgba(16, 185, 129, 0.13);
}

.member-sidebar.collapsed .sidebar-logout-btn .nav-text,
.member-sidebar.collapsed .staff-access-btn .nav-text {
    display: none;
}

/* Content wrapper (Sleek Dark Matte V3) */
.member-content-wrapper {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    margin-left: 270px;
    background: var(--bg-main);
    transition: margin-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.member-sidebar.collapsed + .member-content-wrapper {
    margin-left: 72px;
}

/* Mobile & Desktop minimal topbar V3 */
.topbar-minimal {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: #0c0d10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    z-index: 90;
    position: sticky;
    top: 0;
}

.mobile-hamburger-btn {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
}

.topbar-brand-mobile {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-main);
    font-family: var(--font-heading);
}

.topbar-brand-mobile img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Role Simulator */
.role-simulator-container {
    position: relative;
}

.simulator-btn {
    background: rgba(255, 255, 255, 0.03);
    border: var(--neo-border);
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition-standard);
}

.simulator-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

.simulator-btn.active {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.simulator-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card-solid);
    border: var(--neo-border);
    border-radius: var(--border-radius);
    padding: 8px;
    width: 260px;
    box-shadow: var(--neo-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition-standard);
    z-index: 1002;
}

.simulator-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.simulator-item {
    padding: 10px 14px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-standard);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.simulator-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: white;
}

.simulator-item.current {
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary);
}

.simulator-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 0;
}

/* Notifications */
.notifications-container {
    position: relative;
}

.notifications-btn {
    background: rgba(255, 255, 255, 0.03);
    border: var(--neo-border);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition-standard);
}

.notifications-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--bg-main);
}

.notifications-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card-solid);
    border: var(--neo-border);
    border-radius: var(--border-radius);
    width: 320px;
    box-shadow: var(--neo-shadow);
    display: none; /* Controlled by JS via style.display = 'block'/'none' */
    z-index: 1002;
    overflow: hidden;
}

.notif-dropdown-header {
    padding: 14px 16px;
    border-bottom: var(--neo-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
}

.notif-clear-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.notif-clear-btn:hover {
    opacity: 0.8;
}

.notif-list {
    max-height: 280px;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notif-list::-webkit-scrollbar {
    width: 4px;
}
.notif-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
}

.notif-empty-state {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Main content area */
.app-main {
    flex-grow: 1;
    padding: 36px 40px;
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 64px - 150px);
}

/* Table utilities */
.responsive-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    border-radius: var(--border-radius-sm);
    border: var(--neo-border);
}

/* Footer layout V3 */
footer {
    padding: 40px 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background: #090a0d;
}

/* Drawer Overlay (mobile) */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99;
    display: none;
}

.drawer-overlay.active {
    display: block;
}

/* Responsive Grid/Toggles */
@media (min-width: 993px) {
    .topbar-minimal .mobile-hamburger-btn,
    .topbar-brand-mobile {
        display: none !important;
    }
}

@media (max-width: 992px) {
    .member-sidebar {
        position: fixed;
        left: -270px;
        top: 0;
        height: 100vh;
        width: 270px;
        z-index: 1000;
        box-shadow: 10px 0 30px rgba(0,0,0,0.6);
        background: rgba(10, 15, 30, 0.97);
        backdrop-filter: blur(24px);
    }

    .member-sidebar.collapsed {
        width: 270px !important;
    }

    .member-sidebar.active {
        left: 0;
    }

    .member-content-wrapper {
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }

    .topbar-minimal {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 990;
        padding: 0 16px;
        background: rgba(2, 6, 23, 0.85);
    }

    .sidebar-toggle-btn {
        display: none;
    }

    .app-main {
        padding: 20px;
        padding-top: 80px !important;
    }
    
    .notifications-dropdown {
        position: fixed;
        top: 70px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: calc(100vw - 32px);
    }
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column !important;
        gap: 8px !important;
    }
    .footer-sep {
        display: none !important;
    }
}

/* Aurora Confirmation Modal */
.aurora-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.aurora-modal-overlay.active {
    display: flex;
    opacity: 1;
}
.aurora-modal {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 480px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: scale(0.96) translateY(10px);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.aurora-modal-overlay.active .aurora-modal {
    transform: scale(1) translateY(0);
}
.aurora-modal-header {
    padding: 32px 32px 16px;
    text-align: center;
}
.aurora-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.aurora-modal-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.15);
}
.aurora-modal-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.15);
}
.aurora-modal-icon.info {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.15);
}
.aurora-modal-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.15);
}
.aurora-modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    font-family: var(--font-heading);
    margin-bottom: 8px;
}
.aurora-modal-body {
    padding: 0 32px 32px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}
.aurora-modal-footer {
    padding: 0 32px 32px;
    display: flex;
    gap: 12px;
}
.aurora-modal-footer button {
    flex: 1;
    padding: 11px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition-standard);
    border: none;
    font-size: 0.85rem;
}
.aurora-modal-btn-cancel {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.aurora-modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}
.aurora-modal-btn-confirm {
    background: var(--color-primary);
    color: white;
}
.aurora-modal-btn-confirm:hover {
    opacity: 0.9;
}
.aurora-modal-btn-confirm.danger {
    background: var(--color-accent);
}
.aurora-modal-btn-confirm.danger:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column !important;
        gap: 8px !important;
    }
    .footer-sep {
        display: none !important;
    }
}

/* =============================================================================
   Global Command Palette (Ctrl + K) & Sidebar Theme Switcher
   ============================================================================= */
.cmd-palette-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8, 9, 13, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 50000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    animation: auroraFadeIn 0.2s ease-out;
}

.cmd-palette-modal {
    width: 100%;
    max-width: 640px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-bright);
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 30px rgba(99, 102, 241, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.cmd-palette-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 12px;
}

.cmd-search-icon {
    font-size: 1.1rem;
    color: var(--color-primary);
}

.cmd-palette-header input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    color: white !important;
    font-size: 1rem !important;
    outline: none !important;
    padding: 0 !important;
    font-family: var(--font-body);
}

.cmd-kbd-esc {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.7rem;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-mono);
}

.cmd-palette-body {
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cmd-group-title {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 8px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cmd-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-main);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.cmd-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    font-weight: 500;
}

.cmd-item-left i {
    width: 20px;
    text-align: center;
    color: var(--color-primary);
}

.cmd-item-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
}

.cmd-item-badge.action {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
}

.cmd-item:hover,
.cmd-item.active {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.25);
    color: white;
}

.cmd-palette-footer {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.72rem;
    color: var(--text-dim);
}

.cmd-palette-footer kbd {
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 5px;
    border-radius: 4px;
    font-family: var(--font-mono);
    color: var(--text-main);
}

/* Sidebar Theme Selector */
.sidebar-theme-wrap {
    padding: 10px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.sidebar-theme-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-sm);
    padding: 8px 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-standard);
}

.sidebar-theme-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

.sidebar-theme-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-bright);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(99, 102, 241, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-theme-item {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-standard);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-theme-item:hover {
    background: rgba(99, 102, 241, 0.15);
    color: white;
}

