/* ======================================================================================
   APOLLO UNIFIED DATATABLE & MOBILE RESPONSIVE SYSTEM (apollo-datatable.css)
   Version    : 2.0 (Mobile First & Desktop Enterprise)
   Author     : Citra Media Technology & Apollo Design System
   Compatible : Desktop, Tablet, Mobile (iOS / Android)
   Features   : Responsive Tables, Multi-line User Cells, Avatars, Badges, Dot Status,
                3-Dots Action Popups, Card-Stack Mobile Layout, Dark Mode
   ====================================================================================== */

/* --------------------------------------------------------------------------------------
   1. MAIN TABLE CONTAINER & CARD WRAPPER
   -------------------------------------------------------------------------------------- */
.apollo-datatable-card,
.datatable-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    padding: 20px;
    margin-bottom: 24px;
    position: relative;
}

.apollo-datatable-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.apollo-datatable-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.apollo-datatable-title i {
    color: #2563eb;
}

.apollo-btn-add {
    background: #2563eb;
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
    cursor: pointer;
}

.apollo-btn-add:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.apollo-btn-add-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: 8px;
}

/* --------------------------------------------------------------------------------------
   2. FILTER & CONTROLS TOOLBAR
   -------------------------------------------------------------------------------------- */
.apollo-table-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.apollo-table-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.apollo-entries-select-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: #64748b;
}

.apollo-entries-select {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #1e293b;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.apollo-entries-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.apollo-search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 360px;
}

.apollo-search-input-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.88rem;
    pointer-events: none;
}

.apollo-search-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 14px 8px 36px;
    font-size: 0.84rem;
    color: #1e293b;
    outline: none;
    transition: all 0.2s ease;
}

.apollo-search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.apollo-filter-btn,
.apollo-column-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.apollo-filter-btn:hover,
.apollo-column-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

/* --------------------------------------------------------------------------------------
   3. TABLE BASE & STYLING
   -------------------------------------------------------------------------------------- */
.table-responsive {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.apollo-table {
    width: 100%;
    margin-bottom: 0;
    color: #1e293b;
    font-size: 0.85rem;
    border-collapse: separate;
    border-spacing: 0;
}

.apollo-table thead th {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 700;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    padding: 12px 14px;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
}

.apollo-table thead th.sortable {
    cursor: pointer;
}

.apollo-table thead th.sortable:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.apollo-table thead th .sort-icon {
    margin-left: 4px;
    font-size: 0.7rem;
    color: #94a3b8;
}

.apollo-table tbody td {
    padding: 12px 14px;
    vertical-align: middle;
    border-top: 1px solid #f1f5f9;
    color: #334155;
}

.apollo-table tbody tr:hover {
    background-color: #f8fafc;
}

/* --------------------------------------------------------------------------------------
   4. USER CELL WITH AVATAR & MULTI-LINE INFO
   -------------------------------------------------------------------------------------- */
.apollo-user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.apollo-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: #e2e8f0;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.apollo-avatar-initials {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}

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

.apollo-user-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.88rem;
    line-height: 1.25;
}

.apollo-user-sub {
    font-size: 0.76rem;
    color: #64748b;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------------------
   5. ROLE & LEVEL PILL BADGES
   -------------------------------------------------------------------------------------- */
.apollo-role-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.apollo-role-admin {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.apollo-role-superadmin {
    background: #f5f3ff;
    color: #7c3aed;
    border: 1px solid #ddd6fe;
}

.apollo-role-direktur {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.apollo-role-staff {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.apollo-role-operator {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
}

.apollo-role-finance {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.apollo-role-marketing {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.apollo-role-project {
    background: #faf5ff;
    color: #9333ea;
    border: 1px solid #e9d5ff;
}

.apollo-role-lapangan {
    background: #ecfeff;
    color: #0891b2;
    border: 1px solid #a5f3fc;
}

.apollo-role-client {
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
}

.apollo-role-investor {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #ffedd5;
}

.apollo-role-umum {
    background: #fefce8;
    color: #ca8a04;
    border: 1px solid #fef08a;
}

/* --------------------------------------------------------------------------------------
   6. STATUS BADGES WITH DOT INDICATORS
   -------------------------------------------------------------------------------------- */
.apollo-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.apollo-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.apollo-status-active {
    background: #ecfdf5;
    color: #16a34a;
}
.apollo-status-active .apollo-status-dot {
    background: #16a34a;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

.apollo-status-inactive,
.apollo-status-nonaktif {
    background: #fef2f2;
    color: #dc2626;
}
.apollo-status-inactive .apollo-status-dot,
.apollo-status-nonaktif .apollo-status-dot {
    background: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.apollo-status-pending {
    background: #fffbeb;
    color: #d97706;
}
.apollo-status-pending .apollo-status-dot {
    background: #d97706;
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2);
}

/* --------------------------------------------------------------------------------------
   7. 3-DOTS ACTION BUTTON & POPUP MENU
   -------------------------------------------------------------------------------------- */
.apollo-action-wrap {
    position: relative;
    display: inline-block;
    text-align: center;
}

.apollo-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.apollo-action-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.apollo-action-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    z-index: 1000;
    min-width: 140px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 6px 0;
    text-align: left;
    animation: apolloMenuFadeIn 0.15s ease;
}

.apollo-action-menu.show {
    display: block;
}

@keyframes apolloMenuFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.apollo-action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #334155;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.15s ease;
}

.apollo-action-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.apollo-action-item i {
    width: 16px;
    font-size: 0.85rem;
    color: #64748b;
}

.apollo-action-item.text-danger {
    color: #dc2626 !important;
}

.apollo-action-item.text-danger i {
    color: #dc2626 !important;
}

.apollo-action-item.text-danger:hover {
    background: #fef2f2;
}

/* --------------------------------------------------------------------------------------
   8. MOBILE CARD-STACK VIEW (ALTERNATIVE LAYOUT FOR MOBILE)
   -------------------------------------------------------------------------------------- */
.apollo-mobile-cards-list {
    display: none;
    flex-direction: column;
    gap: 10px;
}

.apollo-mobile-card-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.apollo-mobile-card-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.apollo-card-left-badge {
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 8px 12px;
    border-radius: 8px;
    flex-shrink: 0;
    text-align: center;
    min-width: 44px;
}

.apollo-card-content {
    flex: 1;
    min-width: 0;
}

.apollo-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.apollo-card-desc {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0;
    line-height: 1.35;
    word-break: break-word;
}

/* --------------------------------------------------------------------------------------
   9. PAGINATION & FOOTER
   -------------------------------------------------------------------------------------- */
.apollo-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.84rem;
    color: #64748b;
}

.apollo-pagination {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.apollo-page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.apollo-page-btn:hover:not(.disabled):not(.active) {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.apollo-page-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.apollo-page-btn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* --------------------------------------------------------------------------------------
   10. MOBILE RESPONSIVE MEDIA QUERIES (max-width: 991px & max-width: 576px)
   -------------------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .apollo-portal-wrapper {
        margin-top: 4px !important;
        padding-top: 0 !important;
        padding-bottom: 75px !important;
    }

    .portal-cards-container {
        padding-top: 4px !important;
    }

    /* Filter & Search Toolbar Responsive Wrap on Mobile */
    .filter-toolbar {
        padding: 10px 12px !important;
    }
    .filter-toolbar .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .filter-toolbar [class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
    }
    .filter-toolbar .d-flex {
        flex-wrap: wrap !important;
        width: 100% !important;
        gap: 8px !important;
    }
    .filter-toolbar select,
    .filter-toolbar .filter-input {
        width: 100% !important;
        max-width: 100% !important;
    }

    .portal-breadcrumb-bar {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .apollo-datatable-card,
    .datatable-card {
        padding: 14px;
        border-radius: 14px;
        margin-bottom: 16px;
    }

    .apollo-table-controls-row {
        gap: 8px;
    }

    .apollo-search-input-wrap {
        max-width: 100%;
        width: 100%;
    }

    .apollo-table thead th,
    .apollo-table tbody td {
        padding: 10px 10px;
        font-size: 0.82rem;
    }

    .apollo-avatar,
    .apollo-avatar-initials {
        width: 32px;
        height: 32px;
        font-size: 0.78rem;
    }

    .apollo-user-name {
        font-size: 0.84rem;
    }

    .apollo-user-sub {
        font-size: 0.72rem;
    }

    .apollo-role-badge,
    .apollo-status-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .apollo-table-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        padding-bottom: 20px;
    }

    /* KPI Cards compact on mobile */
    .kpi-card {
        padding: 10px 12px !important;
        gap: 10px !important;
        min-height: 64px !important;
        border-radius: 10px !important;
    }

    .kpi-icon {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        font-size: 15px !important;
        border-radius: 8px !important;
    }

    .kpi-card h4 {
        font-size: 1.05rem !important;
    }

    .kpi-card span.small,
    .kpi-card span.text-uppercase {
        font-size: 0.65rem !important;
        letter-spacing: 0.2px !important;
    }
}

@media (max-width: 576px) {
    .apollo-datatable-header {
        margin-bottom: 14px;
    }

    .apollo-datatable-title {
        font-size: 1.05rem;
    }

    .apollo-btn-add {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .apollo-table thead th.col-hide-mobile,
    .apollo-table tbody td.col-hide-mobile {
        display: none !important;
    }

    .apollo-entries-select-wrap {
        width: 100%;
        justify-content: space-between;
    }

    /* Compact action button group */
    .btn-action-group .btn {
        padding: 3px 6px !important;
        font-size: 11px !important;
    }

    /* Support for switching to mobile card stack if class active */
    .apollo-view-cards-mobile .apollo-table-responsive {
        display: none !important;
    }

    .apollo-view-cards-mobile .apollo-mobile-cards-list {
        display: flex !important;
    }
}

/* --------------------------------------------------------------------------------------
   11. DARK MODE SUPPORT
   -------------------------------------------------------------------------------------- */
html.dark-mode .apollo-datatable-card,
body.dark-mode .apollo-datatable-card {
    background: #121927 !important;
    border-color: #1e293b !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}

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

html.dark-mode .apollo-search-input,
body.dark-mode .apollo-search-input,
html.dark-mode .apollo-entries-select,
body.dark-mode .apollo-entries-select,
html.dark-mode .apollo-filter-btn,
body.dark-mode .apollo-filter-btn,
html.dark-mode .apollo-column-btn,
body.dark-mode .apollo-column-btn,
html.dark-mode .apollo-action-btn,
body.dark-mode .apollo-action-btn,
html.dark-mode .apollo-page-btn,
body.dark-mode .apollo-page-btn {
    background: #182337 !important;
    border-color: #24344d !important;
    color: #e2e8f0 !important;
}

html.dark-mode .table-responsive,
body.dark-mode .table-responsive {
    background: #121927 !important;
    border-color: #1e293b !important;
}

html.dark-mode .apollo-table thead th,
body.dark-mode .apollo-table thead th {
    background-color: #182337 !important;
    border-bottom-color: #24344d !important;
    color: #94a3b8 !important;
}

html.dark-mode .apollo-table tbody td,
body.dark-mode .apollo-table tbody td {
    border-top-color: #1e293b !important;
    color: #cbd5e1 !important;
}

html.dark-mode .apollo-table tbody tr:hover,
body.dark-mode .apollo-table tbody tr:hover {
    background-color: #182337 !important;
}

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

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

html.dark-mode .apollo-action-menu,
body.dark-mode .apollo-action-menu {
    background: #182337 !important;
    border-color: #24344d !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4) !important;
}

html.dark-mode .apollo-action-item,
body.dark-mode .apollo-action-item {
    color: #cbd5e1 !important;
}

html.dark-mode .apollo-action-item:hover,
body.dark-mode .apollo-action-item:hover {
    background: #22314a !important;
    color: #f8fafc !important;
}

html.dark-mode .apollo-mobile-card-item,
body.dark-mode .apollo-mobile-card-item {
    background: #182337 !important;
    border-color: #24344d !important;
}

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

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


/* ==========================================================================
   APOLLO DATATABLE SHOWCASE & PREVIEWS
   ========================================================================== */
:root {
            --font-family-base: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }
        body {
            font-family: var(--font-family-base);
            background-color: #f1f5f9;
            color: #0f172a;
            margin: 0;
            padding: 0;
            -webkit-font-smoothing: antialiased;
        }

        /* Demo Header Controls */
        .showcase-control-bar {
            position: sticky;
            top: 0;
            z-index: 9999;
            background: #ffffff;
            border-bottom: 1px solid #e2e8f0;
            padding: 12px 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            flex-wrap: wrap;
            gap: 12px;
        }
        .showcase-title {
            font-size: 1rem;
            font-weight: 800;
            color: #0f172a;
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 0;
        }
        .showcase-btn-group {
            display: inline-flex;
            background: #f1f5f9;
            padding: 4px;
            border-radius: 10px;
            gap: 4px;
        }
        .showcase-tab-btn {
            border: none;
            background: transparent;
            padding: 6px 14px;
            font-size: 0.82rem;
            font-weight: 600;
            color: #64748b;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .showcase-tab-btn.active {
            background: #ffffff;
            color: #2563eb;
            box-shadow: 0 1px 4px rgba(0,0,0,0.08);
        }

        /* Mobile Simulation Device Frame */
        .mobile-device-wrapper {
            display: flex;
            justify-content: center;
            padding: 30px 16px 60px 16px;
        }
        .mobile-phone-frame {
            width: 100%;
            max-width: 414px;
            min-height: 840px;
            background: #ffffff;
            border-radius: 40px;
            box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3), 0 0 0 10px #1e293b, 0 0 0 12px #94a3b8;
            overflow: hidden;
            position: relative;
            display: flex;
            flex-direction: column;
        }
        .mobile-phone-notch {
            height: 38px;
            background: #ffffff;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 24px;
            font-size: 0.8rem;
            font-weight: 700;
            color: #0f172a;
            position: relative;
            z-index: 10;
        }
        .mobile-dynamic-island {
            width: 90px;
            height: 20px;
            background: #000000;
            border-radius: 20px;
            position: absolute;
            left: 50%;
            top: 8px;
            transform: translateX(-50%);
        }
        .mobile-content-scroll {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
            background: #f8fafc;
            padding-bottom: 85px; /* Dock spacing */
        }

        /* Mobile App Dock / Bottom Navbar */
        .mobile-app-dock {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 64px;
            background: #ffffff;
            border-top: 1px solid #f1f5f9;
            display: flex;
            align-items: center;
            justify-content: space-around;
            padding: 0 12px;
            z-index: 100;
            box-shadow: 0 -4px 16px rgba(0,0,0,0.03);
        }
        .mobile-dock-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            color: #94a3b8;
            text-decoration: none !important;
            font-size: 0.68rem;
            font-weight: 600;
            flex: 1;
            cursor: pointer;
            transition: color 0.15s ease;
        }
        .mobile-dock-item i {
            font-size: 1.1rem;
        }
        .mobile-dock-item.active {
            color: #2563eb;
        }

        /* Mobile Header */
        .mobile-app-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 0 16px 0;
        }
        .mobile-header-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .mobile-brand-logo {
            display: flex;
            align-items: center;
            gap: 6px;
            font-weight: 800;
            font-size: 1.05rem;
            color: #0f172a;
            letter-spacing: 0.5px;
        }
        .mobile-header-user {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.82rem;
            font-weight: 600;
            color: #334155;
            cursor: pointer;
        }
        .mobile-page-title-wrap {
            margin-bottom: 14px;
        }
        .mobile-page-title {
            font-size: 1.25rem;
            font-weight: 800;
            color: #0f172a;
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 0;
        }
        .mobile-page-breadcrumb {
            font-size: 0.78rem;
            color: #64748b;
            margin-top: 2px;
        }
        .mobile-page-breadcrumb a {
            color: #2563eb;
            text-decoration: none;
        }

        /* Desktop Container */
        .desktop-container {
            max-width: 1280px;
            margin: 30px auto;
            padding: 0 20px;
        }

        /* Custom Checkbox */
        .apollo-checkbox {
            width: 18px;
            height: 18px;
            accent-color: #2563eb;
            cursor: pointer;
            vertical-align: middle;
        }

        /* Dark Mode Overrides */
        html.dark-mode body {
            background-color: #0b1120;
            color: #f8fafc;
        }
        html.dark-mode .showcase-control-bar {
            background: #121927;
            border-color: #1e293b;
        }
        html.dark-mode .showcase-title {
            color: #f8fafc;
        }
        html.dark-mode .showcase-btn-group {
            background: #182337;
        }
        html.dark-mode .showcase-tab-btn {
            color: #94a3b8;
        }
        html.dark-mode .showcase-tab-btn.active {
            background: #22314a;
            color: #60a5fa;
        }
        html.dark-mode .mobile-phone-frame {
            background: #121927;
            box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 10px #0f172a, 0 0 0 12px #334155;
        }
        html.dark-mode .mobile-phone-notch {
            background: #121927;
            color: #f8fafc;
        }
        html.dark-mode .mobile-content-scroll {
            background: #0f172a;
        }
        html.dark-mode .mobile-app-dock {
            background: #121927;
            border-color: #1e293b;
        }
        html.dark-mode .mobile-brand-logo,
        html.dark-mode .mobile-page-title {
            color: #f8fafc;
        }
        html.dark-mode .mobile-header-user {
            color: #cbd5e1;
        }
