/* ======================================================================================
   APOLLO KATEGORI NAVIGASI (apollo-nav.css)
   Description: Complete Navigation Design System (Header, Topbar, Megamenu, Sidebar)
   ====================================================================================== */

/* ============================================================
   1. MAIN HEADER & COMPACT CAPSULE
   ============================================================ */
.apollo-header,
#apollo-main-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1020;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.apollo-header-card {
    border: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    background: transparent !important;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* ============================================================
   BREADCRUMB TOTAL ZERO-CARD & SEAMLESS INLINE RESET
   ============================================================ */
.portal-breadcrumb-bar,
.portal-breadcrumb-bar *,
nav[aria-label="breadcrumb"],
nav[aria-label="breadcrumb"] *,
ol.breadcrumb,
ol.breadcrumb *,
.breadcrumb,
.breadcrumb * {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-width: 0 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

.portal-breadcrumb-bar {
    padding: 0 !important;
    margin: 0 0 10px 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.portal-breadcrumb-bar .breadcrumb,
.breadcrumb {
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    list-style: none !important;
}

.breadcrumb-item {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 0.8125rem !important;
    color: #64748b !important;
}

.breadcrumb-item a {
    color: #64748b !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
}

.breadcrumb-item a:hover {
    color: #2563eb !important;
}

.breadcrumb-item.active {
    color: #1e293b !important;
    font-weight: 600 !important;
}

html.dark-mode .breadcrumb-item.active,
body.dark-mode .breadcrumb-item.active {
    color: #f1f5f9 !important;
}

/* Compact Mode (Capsule at Top - Desktop Only) */
@media (min-width: 992px) {
    .apollo-header.apollo-header-compact {
        position: fixed !important;
        top: 12px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        max-width: 95vw !important;
        border-radius: 40px !important;
        box-shadow: none !important;
        -webkit-box-shadow: none !important;
        padding: 2px 14px !important;
        border: 1px solid rgba(226, 232, 240, 0.8) !important;
        background: rgba(255, 255, 255, 0.92) !important;
    }
    .apollo-header.apollo-header-compact .apollo-megamenu-bar {
        display: none !important;
    }
    .apollo-header.apollo-header-compact .apollo-topbar-wrapper {
        padding: 4px 6px !important;
    }
}

/* ============================================================
   2. TOPBAR ROW 1 (Brand, Search, Right Actions)
   ============================================================ */
.apollo-topbar-wrapper {
    padding: 8px 24px;
    width: 100%;
    box-sizing: border-box;
}

.apollo-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
}

/* Brand Left */
.apollo-topbar-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.apollo-logo-group {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.apollo-logo-group:hover {
    opacity: 0.9;
    text-decoration: none;
}

.apollo-logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}

.apollo-product-name {
    font-size: 1.1rem;
    color: #1a237e;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Center Search */
.apollo-topbar-center {
    flex: 1;
    max-width: 440px;
}

.apollo-search-box {
    background: #f1f5f9;
    border-radius: 10px;
    padding: 6px 14px;
    width: 100%;
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.apollo-search-box:focus-within {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.apollo-search-icon {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-right: 8px;
    flex-shrink: 0;
}

.apollo-search-kbd {
    display: flex;
    gap: 3px;
    cursor: pointer;
    flex-shrink: 0;
}
.apollo-search-kbd kbd {
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 4px;
    box-shadow: none;
    font-family: inherit;
    font-weight: 600;
}

/* Right Actions */
.apollo-topbar-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.apollo-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 12px;
}

.apollo-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #64748b;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}
.apollo-action-icon:hover {
    background: #f1f5f9;
    color: #1a237e;
    text-decoration: none;
}

.apollo-lang-divider {
    width: 1px;
    height: 20px;
    background: #e2e8f0;
    margin-right: 12px;
}

.apollo-lang-btn {
    color: #1e293b;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    cursor: pointer;
}
.apollo-lang-btn:hover {
    background: #f1f5f9;
    color: #1a237e;
    text-decoration: none;
}
.apollo-lang-btn::after {
    display: none;
}

/* User Button */
.apollo-user-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 4px 12px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}
.apollo-user-btn:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    text-decoration: none;
}
.apollo-user-btn::after {
    display: none;
}

.apollo-avatar-circle {
    width: 30px;
    height: 30px;
    background: #1a237e;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    margin-right: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.apollo-user-info {
    line-height: 1.1;
    max-width: 140px;
}

/* ============================================================
   3. MEGA MENU BAR ROW 2 (Full Width Desktop Menu)
   ============================================================ */
.apollo-megamenu-bar {
    background: transparent;
    border-top: none !important;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
    height: 42px;
    display: flex;
    align-items: center;
    position: relative;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

.apollo-megamenu-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}
.apollo-megamenu-nav::-webkit-scrollbar {
    display: none;
}

/* Menu Item */
.apollo-menu-item {
    position: static;
    height: 100%;
    display: inline-flex;
    align-items: center;
}

.apollo-menu-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    color: #475569;
    font-weight: 600;
    font-size: 0.84rem;
    text-decoration: none;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    transition: color 0.15s ease;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
}
.apollo-menu-link i:first-child {
    font-size: 0.92rem;
    color: #1a237e;
    transition: transform 0.15s ease, color 0.15s ease;
}
.apollo-menu-link span {
    line-height: 1;
}
.apollo-chevron {
    font-size: 0.55rem !important;
    color: #94a3b8 !important;
    margin-left: 2px;
    transition: transform 0.2s ease !important;
}

.apollo-has-megamenu:hover > .apollo-menu-link,
.apollo-menu-link:hover {
    background: transparent !important;
    color: #2563eb !important;
    text-decoration: none;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}
.apollo-has-megamenu:hover > .apollo-menu-link i:first-child,
.apollo-menu-link:hover i:first-child {
    color: #2563eb !important;
}
.apollo-has-megamenu:hover > .apollo-menu-link .apollo-chevron {
    transform: rotate(180deg);
    color: #2563eb !important;
}

/* Active Menu Item - Flat & Clean, Zero Card, Zero Shadow */
.apollo-menu-link.active,
.apollo-has-megamenu.active > .apollo-menu-link {
    background: transparent !important;
    color: #2563eb !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}
.apollo-menu-link.active i:first-child,
.apollo-has-megamenu.active > .apollo-menu-link i:first-child {
    color: #2563eb !important;
}
.apollo-menu-link.active::after,
.apollo-has-megamenu.active > .apollo-menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    height: 2px;
    background: #2563eb;
    border-radius: 2px 2px 0 0;
}

/* ============================================================
   4. MEGA MENU PANELS (Dropdown Flyouts)
   ============================================================ */
.apollo-megamenu-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
    z-index: 1050;
    padding: 24px 32px 28px 32px;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    animation: apollo-megamenu-enter 0.15s ease-out;
}

@keyframes apollo-megamenu-enter {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.apollo-has-megamenu:hover .apollo-megamenu-panel {
    display: block;
}

.apollo-megamenu-grid {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.apollo-megamenu-3col {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
}

.apollo-megamenu-col {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    max-width: 320px;
}

.apollo-megamenu-heading {
    color: #64748b;
    font-weight: 700;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    padding-bottom: 0;
    border: none;
}

.apollo-megamenu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.apollo-megamenu-list li {
    margin-bottom: 7px;
}
.apollo-megamenu-list a {
    display: inline-block;
    padding: 2px 0;
    color: #1e293b;
    font-weight: 500;
    font-size: 0.84rem;
    text-decoration: none;
    line-height: 1.35;
    transition: color 0.15s ease;
}
.apollo-megamenu-list a:hover {
    color: #1a237e;
    text-decoration: underline;
    font-weight: 600;
}

/* ============================================================
   5. DARK MODE OVERRIDES
   ============================================================ */
html.dark-mode .apollo-header,
body.dark-mode .apollo-header,
.dark-mode .apollo-header,
html.dark-mode #apollo-main-header,
body.dark-mode #apollo-main-header,
.dark-mode #apollo-main-header {
    background: rgba(15, 23, 42, 0.96) !important;
    border-bottom-color: #334155 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

html.dark-mode .apollo-header.apollo-header-compact,
body.dark-mode .apollo-header.apollo-header-compact {
    background: rgba(15, 23, 42, 0.94) !important;
    border-color: #334155 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

html.dark-mode .apollo-product-name,
body.dark-mode .apollo-product-name {
    color: #f8fafc !important;
}

html.dark-mode .apollo-search-box,
body.dark-mode .apollo-search-box {
    background: #1e293b !important;
    border-color: #334155 !important;
}
html.dark-mode .apollo-search-box input,
body.dark-mode .apollo-search-box input {
    color: #f8fafc !important;
}

html.dark-mode .apollo-search-kbd kbd,
body.dark-mode .apollo-search-kbd kbd {
    background: #334155 !important;
    color: #94a3b8 !important;
}

html.dark-mode .apollo-lang-btn,
body.dark-mode .apollo-lang-btn {
    background: #1e293b !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

html.dark-mode .apollo-user-btn,
body.dark-mode .apollo-user-btn {
    background: #1e293b !important;
    border-color: #334155 !important;
}

html.dark-mode .apollo-megamenu-bar,
body.dark-mode .apollo-megamenu-bar,
.dark-mode .apollo-megamenu-bar {
    background: #0f172a !important;
    border-top: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

html.dark-mode .apollo-menu-link,
body.dark-mode .apollo-menu-link {
    color: #94a3b8 !important;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}
html.dark-mode .apollo-menu-link:hover,
body.dark-mode .apollo-menu-link:hover {
    background: transparent !important;
    color: #60a5fa !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}
html.dark-mode .apollo-menu-link:hover i:first-child,
body.dark-mode .apollo-menu-link:hover i:first-child {
    color: #60a5fa !important;
}
html.dark-mode .apollo-menu-link.active,
body.dark-mode .apollo-menu-link.active {
    background: transparent !important;
    color: #60a5fa !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    border-radius: 0 !important;
}
html.dark-mode .apollo-menu-link.active i:first-child,
body.dark-mode .apollo-menu-link.active i:first-child {
    color: #60a5fa !important;
}
html.dark-mode .apollo-menu-link.active::after,
html.dark-mode .apollo-has-megamenu.active > .apollo-menu-link::after {
    background: #60a5fa !important;
}

html.dark-mode .apollo-megamenu-panel,
body.dark-mode .apollo-megamenu-panel {
    background: #0f172a !important;
    border-color: #334155 !important;
    box-shadow: 0 16px 36px rgba(0,0,0,0.5) !important;
}

html.dark-mode .apollo-megamenu-heading,
body.dark-mode .apollo-megamenu-heading {
    color: #94a3b8 !important;
}

html.dark-mode .apollo-megamenu-list a,
body.dark-mode .apollo-megamenu-list a {
    color: #cbd5e1 !important;
}
html.dark-mode .apollo-megamenu-list a:hover,
body.dark-mode .apollo-megamenu-list a:hover {
    color: #818cf8 !important;
}

/* ============================================================
   APOLLO MOBILE OFFCANVAS DRAWER & BACKDROP
   ============================================================ */
.apollo-drawer-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100050;
    transition: opacity 0.3s ease;
}
.apollo-drawer-backdrop.show {
    display: block !important;
}

.apollo-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 290px;
    max-width: 85vw;
    background: #ffffff;
    z-index: 100100;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.apollo-mobile-drawer.show {
    transform: translateX(0) !important;
}

.apollo-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.apollo-drawer-user-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.apollo-drawer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.apollo-drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 12px 24px 12px;
}
.apollo-drawer-group-header {
    font-size: 0.68rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 12px 8px 4px 8px;
}
.apollo-drawer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    color: #334155;
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.15s ease;
    margin-bottom: 2px;
}
.apollo-drawer-link:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.apollo-drawer-link.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 700;
}
.apollo-drawer-link i {
    width: 18px;
    text-align: center;
    font-size: 0.95rem;
}

/* Dark Mode Drawer */
html.dark-mode .apollo-mobile-drawer {
    background: #1e293b;
    border-right: 1px solid #334155;
}
html.dark-mode .apollo-drawer-header {
    background: #1e293b;
    border-bottom: 1px solid #334155;
}
html.dark-mode .apollo-drawer-user-box {
    background: #0f172a;
    border-bottom: 1px solid #334155;
}
html.dark-mode .apollo-drawer-link {
    color: #cbd5e1;
}
html.dark-mode .apollo-drawer-link:hover {
    background: #334155;
    color: #ffffff;
}
html.dark-mode .apollo-drawer-link.active {
    background: rgba(37, 99, 235, 0.25);
    color: #60a5fa;
}

/* ============================================================
   APOLLO MOBILE BOTTOM NAVIGATION BAR (DOCKED AT SCREEN BOTTOM)
   ============================================================ */
.apollo-mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 56px !important;
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    z-index: 100000 !important;
    padding: 0 4px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}
.apollo-bottom-tab {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    color: #64748b !important;
    text-decoration: none !important;
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    gap: 3px !important;
    padding: 4px 0 !important;
    transition: color 0.15s ease !important;
    -webkit-tap-highlight-color: transparent !important;
    border: none !important;
    background: transparent !important;
}
.apollo-bottom-tab i {
    font-size: 1.15rem !important;
    line-height: 1 !important;
}
.apollo-bottom-tab.active,
.apollo-bottom-tab:hover {
    color: #2563eb !important;
}

/* Dark Mode Bottom Nav */
html.dark-mode .apollo-mobile-bottom-nav {
    background: #1e293b !important;
    border-top: 1px solid #334155 !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3) !important;
}
html.dark-mode .apollo-bottom-tab {
    color: #94a3b8 !important;
}
html.dark-mode .apollo-bottom-tab.active,
html.dark-mode .apollo-bottom-tab:hover {
    color: #60a5fa !important;
}


/* ============================================================
   APOLLO MOBILE DRAWER ACCORDION (SUBMENUS)
   ============================================================ */
.apollo-drawer-accordion-item {
    margin-bottom: 4px !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
}
.apollo-drawer-acc-trigger {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 11px 14px !important;
    cursor: pointer !important;
    font-size: 0.86rem !important;
    color: #1e293b !important;
    user-select: none !important;
    transition: background 0.15s ease !important;
}
.apollo-drawer-acc-trigger:hover {
    background: #f1f5f9 !important;
}
.apollo-acc-chevron {
    font-size: 0.72rem !important;
    color: #94a3b8 !important;
    transition: transform 0.25s ease !important;
}
.apollo-drawer-accordion-item.open .apollo-acc-chevron {
    transform: rotate(180deg) !important;
    color: #2563eb !important;
}
.apollo-drawer-sublist {
    display: none !important;
    padding: 6px 10px 12px 14px !important;
    background: #ffffff !important;
    border-top: 1px solid #f1f5f9 !important;
}
.apollo-drawer-accordion-item.open .apollo-drawer-sublist {
    display: block !important;
}
.apollo-subgroup-title {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 8px 4px 4px 4px !important;
}
.apollo-drawer-sublink {
    display: block !important;
    padding: 6px 10px !important;
    font-size: 0.82rem !important;
    color: #334155 !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    transition: all 0.15s ease !important;
    margin-bottom: 2px !important;
}
.apollo-drawer-sublink:hover {
    background: #eff6ff !important;
    color: #2563eb !important;
    font-weight: 600 !important;
}

/* Dark Mode Drawer Accordion */
html.dark-mode .apollo-drawer-accordion-item {
    background: #0f172a !important;
    border-color: #334155 !important;
}
html.dark-mode .apollo-drawer-acc-trigger {
    color: #f1f5f9 !important;
}
html.dark-mode .apollo-drawer-acc-trigger:hover {
    background: #1e293b !important;
}
html.dark-mode .apollo-drawer-sublist {
    background: #1e293b !important;
    border-top-color: #334155 !important;
}
html.dark-mode .apollo-drawer-sublink {
    color: #cbd5e1 !important;
}
html.dark-mode .apollo-drawer-sublink:hover {
    background: #334155 !important;
    color: #ffffff !important;
}

/* ============================================================
   APOLLO MACOS LAUNCHPAD & SPOTLIGHT SEARCH MODAL (Ctrl + K)
   ============================================================ */
#apollo-spotlight-modal,
.apollo-spotlight-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999999 !important;
    display: none;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-top: 8vh !important;
    padding-bottom: 5vh !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
}
#apollo-spotlight-modal.show,
#apollo-spotlight-modal.active,
.apollo-spotlight-modal.show,
.apollo-spotlight-modal.active {
    display: flex !important;
}
#apollo-spotlight-backdrop,
.apollo-spotlight-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 1 !important;
    background: rgba(11, 17, 32, 0.82) !important;
    backdrop-filter: blur(40px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(190%) !important;
    cursor: pointer !important;
}
.apollo-launchpad-container {
    position: relative !important;
    z-index: 10 !important;
    width: 1060px !important;
    max-width: 95vw !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}
.apollo-spotlight-search-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    display: flex;
    align-items: center;
    padding: 11px 18px;
    width: 100%;
    max-width: 620px;
    margin-bottom: 18px;
    box-sizing: border-box;
    gap: 10px;
}
.apollo-spotlight-search-box input {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 1.02rem !important;
    color: #0f172a !important;
    width: 100% !important;
    font-weight: 500 !important;
    font-family: inherit !important;
    box-shadow: none !important;
}
.apollo-spotlight-search-box i.fa-search {
    color: #64748b;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.apollo-spotlight-ai-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    color: #ffffff !important;
    border: none;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
    flex-shrink: 0;
    transition: transform 0.15s ease;
}
.apollo-spotlight-ai-btn:hover {
    transform: scale(1.04);
}
.apollo-spotlight-esc-btn {
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}
#apollo-spotlight-ai-drawer,
.apollo-spotlight-ai-drawer {
    display: none;
    width: 100%;
    max-width: 620px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 24px;
    box-sizing: border-box;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    color: #f8fafc;
    text-align: left;
}
#apollo-spotlight-ai-content {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e2e8f0;
    max-height: 280px;
    overflow-y: auto;
    word-break: break-word;
}
#apollo-spotlight-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
    gap: 26px 16px !important;
    width: 100% !important;
    max-width: 1040px !important;
    justify-items: center !important;
    box-sizing: border-box !important;
}
.apollo-launchpad-app {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    text-decoration: none !important;
    color: #ffffff !important;
    cursor: pointer !important;
    user-select: none !important;
    width: 100% !important;
    max-width: 145px !important;
    padding: 10px 6px !important;
    border-radius: 18px !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease !important;
}
.apollo-launchpad-app:hover {
    transform: translateY(-4px) scale(1.05) !important;
    text-decoration: none !important;
    color: #ffffff !important;
}
.apollo-app-squircle {
    width: 60px !important;
    height: 60px !important;
    border-radius: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    margin-bottom: 8px !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.apollo-app-squircle svg {
    width: 28px !important;
    height: 28px !important;
    display: block !important;
}
.apollo-app-title {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-align: center !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7) !important;
    white-space: nowrap !important;
    letter-spacing: -0.2px !important;
    display: block !important;
}
#apollo-spotlight-empty-state {
    display: none;
    color: #ffffff;
    text-align: center;
    padding: 25px 20px;
}

/* Launchpad Squircle Color Palette */
.squircle-ai { background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%) !important; box-shadow: 0 10px 25px rgba(168, 85, 247, 0.45), 0 1px 0 rgba(255, 255, 255, 0.4) inset !important; }
.squircle-indigo { background: #4f46e5 !important; box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4), 0 1px 0 rgba(255, 255, 255, 0.4) inset !important; }
.squircle-amber { background: #d97706 !important; box-shadow: 0 10px 25px rgba(217, 119, 6, 0.4), 0 1px 0 rgba(255, 255, 255, 0.4) inset !important; }
.squircle-green { background: #22c55e !important; box-shadow: 0 10px 25px rgba(34, 197, 94, 0.4), 0 1px 0 rgba(255, 255, 255, 0.4) inset !important; }
.squircle-emerald { background: #059669 !important; box-shadow: 0 10px 25px rgba(5, 150, 105, 0.4), 0 1px 0 rgba(255, 255, 255, 0.4) inset !important; }
.squircle-royal { background: #1d4ed8 !important; box-shadow: 0 10px 25px rgba(29, 78, 216, 0.4), 0 1px 0 rgba(255, 255, 255, 0.4) inset !important; }
.squircle-blue { background: #3b82f6 !important; box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4), 0 1px 0 rgba(255, 255, 255, 0.4) inset !important; }
.squircle-violet { background: #8b5cf6 !important; box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4), 0 1px 0 rgba(255, 255, 255, 0.4) inset !important; }
.squircle-orange { background: #ea580c !important; box-shadow: 0 10px 25px rgba(234, 88, 12, 0.4), 0 1px 0 rgba(255, 255, 255, 0.4) inset !important; }
.squircle-dark { background: #334155 !important; box-shadow: 0 10px 25px rgba(51, 65, 85, 0.4), 0 1px 0 rgba(255, 255, 255, 0.4) inset !important; }
.squircle-cyan { background: #0891b2 !important; box-shadow: 0 10px 25px rgba(8, 145, 178, 0.4), 0 1px 0 rgba(255, 255, 255, 0.4) inset !important; }
.squircle-yellow { background: #f59e0b !important; box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4), 0 1px 0 rgba(255, 255, 255, 0.4) inset !important; }
.squircle-slate { background: #64748b !important; box-shadow: 0 10px 25px rgba(100, 116, 139, 0.4), 0 1px 0 rgba(255, 255, 255, 0.4) inset !important; }
.squircle-navy { background: #1e293b !important; box-shadow: 0 10px 25px rgba(30, 41, 59, 0.4), 0 1px 0 rgba(255, 255, 255, 0.4) inset !important; }
.squircle-purple { background: #7c3aed !important; box-shadow: 0 10px 25px rgba(124, 58, 237, 0.4), 0 1px 0 rgba(255, 255, 255, 0.4) inset !important; }
.squircle-rose { background: #e11d48 !important; box-shadow: 0 10px 25px rgba(225, 29, 72, 0.4), 0 1px 0 rgba(255, 255, 255, 0.4) inset !important; }

/* ============================================================
   APOLLO NAVBAR FLYOUTS, BADGES & USER MENU
   ============================================================ */
#apollo-nav-search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 440px;
    max-width: 90vw;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
    padding: 12px;
    z-index: 10000;
    color: #1e293b;
}
#apollo-nav-search-body {
    font-size: 0.85rem;
    line-height: 1.5;
    max-height: 280px;
    overflow-y: auto;
    color: #334155;
}
html.dark-mode #apollo-nav-search-dropdown {
    background: #1e293b !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
    color: #f1f5f9 !important;
}
html.dark-mode #apollo-nav-search-body {
    color: #cbd5e1 !important;
}

/* Offline Badge */
.apollo-offline-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.apollo-offline-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    display: inline-block;
    animation: apollo-pulse 1.5s infinite;
}
@keyframes apollo-pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* Brand Divider */
.apollo-brand-divider {
    width: 1px;
    height: 22px;
    background: #e2e8f0;
    margin: 0 12px;
}
html.dark-mode .apollo-brand-divider {
    background: #334155 !important;
}

/* User Profile Menu & Avatar Large */
.apollo-avatar-large {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.1rem !important;
}
.apollo-user-name-display {
    font-size: 0.72rem;
    line-height: 1.2;
    max-width: 130px;
    text-transform: uppercase;
}
.apollo-user-email-display {
    font-size: 0.62rem;
    line-height: 1;
}
.apollo-user-chevron {
    font-size: 0.55rem;
    color: #94a3b8;
}
.apollo-user-menu {
    border-radius: 12px;
    min-width: 260px;
    padding: 8px;
    box-shadow: 0 16px 36px rgba(0,0,0,0.12);
    border: 1px solid #e2e8f0;
    z-index: 1070;
}
.apollo-user-menu .dropdown-item {
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.84rem;
    font-weight: 500;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}
.apollo-user-menu .dropdown-item:hover {
    background: #f1f5f9;
    color: #1a237e;
}
.apollo-user-menu .dropdown-item.text-danger:hover {
    background: #fef2f2;
    color: #dc2626;
}
html.dark-mode .apollo-user-menu {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 16px 36px rgba(0,0,0,0.5) !important;
}
html.dark-mode .apollo-user-menu .dropdown-item {
    color: #cbd5e1 !important;
}
html.dark-mode .apollo-user-menu .dropdown-item:hover {
    background: #334155 !important;
    color: #ffffff !important;
}
html.dark-mode .apollo-user-menu .border-bottom {
    border-bottom-color: #334155 !important;
}
html.dark-mode .apollo-user-menu .dropdown-divider {
    border-top-color: #334155 !important;
}

/* Theme & Language Menus */
.apollo-theme-menu,
.apollo-lang-menu {
    border-radius: 10px;
    min-width: 185px;
    padding: 6px;
    font-size: 0.82rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 32px rgba(0,0,0,0.1);
    z-index: 1070;
}
.apollo-theme-item,
.apollo-lang-item {
    border-radius: 6px;
    padding: 8px 10px;
    gap: 8px;
    transition: background 0.15s ease;
}
.apollo-theme-item:hover,
.apollo-lang-item:hover {
    background: #f1f5f9;
}
html.dark-mode .apollo-theme-menu,
html.dark-mode .apollo-lang-menu {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 16px 32px rgba(0,0,0,0.4) !important;
}
html.dark-mode .apollo-theme-item,
html.dark-mode .apollo-lang-item {
    color: #cbd5e1 !important;
}
html.dark-mode .apollo-theme-item:hover,
html.dark-mode .apollo-lang-item:hover {
    background: #334155 !important;
    color: #ffffff !important;
}

/* Mobile Theme Button */
.apollo-mobile-theme-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.95rem;
    margin-right: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.apollo-mobile-theme-btn:hover {
    background: #f1f5f9;
    color: #1a237e;
}
html.dark-mode .apollo-mobile-theme-btn {
    border-color: #334155 !important;
    color: #f59e0b !important;
}

/* Compact Toggle Button */
.apollo-compact-toggle-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #1e293b;
    background: transparent;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.2s ease;
    outline: none;
    padding: 0;
}
.apollo-compact-toggle-btn i {
    color: #1e293b;
    font-size: 0.85rem;
}
html.dark-mode .apollo-compact-toggle-btn {
    border-color: #94a3b8 !important;
}
html.dark-mode .apollo-compact-toggle-btn i {
    color: #f1f5f9 !important;
}

/* iOS PWA Instructions Modal */
.apollo-pwa-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.apollo-pwa-modal-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
}
.apollo-pwa-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}
.apollo-pwa-modal-body {
    padding: 20px;
}
.apollo-pwa-modal-footer {
    padding: 14px 20px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}
html.dark-mode .apollo-pwa-modal-card {
    background: #1e293b;
    color: #f1f5f9;
}
html.dark-mode .apollo-pwa-modal-header {
    border-bottom-color: #334155;
}
html.dark-mode .apollo-pwa-modal-footer {
    background: #0f172a;
    border-top-color: #334155;
}

/* ============================================================
   ROLE-BASED MENU DISPLAY (NON-ADMIN RESTRICTIONS)
   Enforce zero-leak policy for administrative menus on client-side
   ============================================================ */
body:not(.is-admin) .apollo-admin-only,
html:not(.is-admin) .apollo-admin-only,
[data-user-role="operator"] .apollo-admin-only,
[data-user-role="staff"] .apollo-admin-only,
[data-user-role="pelanggan"] .apollo-admin-only,
[data-user-role="client"] .apollo-admin-only,
[data-user-role="customer"] .apollo-admin-only {
    display: none !important;
}