/* ============================================
   APOLLO CORE — Design System
   Colors: Orange #eb770c, Black #000, White #fff
   Font: Inter (Google Fonts)
   ============================================ */

/* === CSS Variables === */
:root {
    --apollo-primary: #eb770c;
    --apollo-primary-hover: #d46a0a;
    --apollo-primary-light: #fef3e6;
    --apollo-dark: #000000;
    --apollo-white: #ffffff;
    --apollo-bg: #f9fafb;
    --apollo-success: #22c55e;
    --apollo-success-light: #dcfce7;
    --apollo-warning: #eab308;
    --apollo-warning-light: #fef9c3;
    --apollo-danger: #ef4444;
    --apollo-danger-light: #fee2e2;
    --apollo-neutral: #9ca3af;
    --apollo-neutral-light: #f3f4f6;
    --apollo-text: #111827;
    --apollo-text-secondary: #6b7280;
    --apollo-border: #e5e7eb;
    --apollo-shadow: 0 1px 3px rgba(0,0,0,0.08);
    --apollo-shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --apollo-shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --apollo-radius: 12px;
    --apollo-radius-sm: 8px;
    --apollo-radius-xs: 6px;
    --apollo-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --apollo-nav-height: 60px;
    --apollo-header-height: 56px;
    --apollo-transition: 0.2s ease;
}

/* === Base Reset === */
.apollo-page *, .apollo-top-header *, .apollo-bottom-nav *, .apollo-search-bar *, .apollo-modal-overlay * {
    box-sizing: border-box;
    font-family: var(--apollo-font);
}

/* === Top Header === */
.apollo-top-header {
    position: sticky; top: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    height: var(--apollo-header-height);
    padding: 0 16px;
    background: var(--apollo-white);
    border-bottom: 1px solid var(--apollo-border);
}
.apollo-header-left { display: flex; align-items: center; }
.apollo-logo { height: 28px; width: auto; }
.apollo-header-center { flex: 1; text-align: center; }
.apollo-page-title {
    font-size: 16px; font-weight: 600;
    color: var(--apollo-text);
}
.apollo-header-right { display: flex; align-items: center; gap: 8px; }
.apollo-header-btn {
    width: 36px; height: 36px; border: none; background: transparent;
    border-radius: 50%; cursor: pointer; display: flex;
    align-items: center; justify-content: center; color: var(--apollo-text);
    transition: background var(--apollo-transition);
    position: relative; padding: 0;
}
.apollo-header-btn:hover { background: var(--apollo-neutral-light); }
.apollo-header-btn .dashicons { font-size: 20px; width: 20px; height: 20px; }
.apollo-notif-badge {
    position: absolute; top: 2px; right: 2px;
    background: var(--apollo-danger); color: white;
    font-size: 10px; min-width: 16px; height: 16px;
    border-radius: 8px; display: flex; align-items: center;
    justify-content: center; padding: 0 4px;
}
.apollo-user-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--apollo-primary); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600; cursor: pointer;
}

/* === Search Bar === */
.apollo-search-bar {
    position: sticky; top: var(--apollo-header-height); z-index: 999;
    background: var(--apollo-white);
    border-bottom: 1px solid var(--apollo-border);
    padding: 8px 16px 12px;
    animation: apolloSlideDown 0.2s ease;
}
@keyframes apolloSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.apollo-search-mode { display: flex; gap: 8px; margin-bottom: 8px; }
.apollo-search-mode-btn {
    flex: 1; padding: 6px 12px; border: 1px solid var(--apollo-border);
    background: var(--apollo-white); border-radius: var(--apollo-radius-xs);
    cursor: pointer; font-size: 12px; font-weight: 500;
    color: var(--apollo-text-secondary); display: flex;
    align-items: center; justify-content: center; gap: 4px;
    transition: all var(--apollo-transition);
}
.apollo-search-mode-btn .dashicons { font-size: 14px; width: 14px; height: 14px; }
.apollo-search-mode-btn.active {
    background: var(--apollo-primary); color: white;
    border-color: var(--apollo-primary);
}
.apollo-search-input-wrap {
    position: relative; display: flex; align-items: center;
}
.apollo-search-icon {
    position: absolute; left: 12px;
    color: var(--apollo-neutral); font-size: 18px; width: 18px; height: 18px;
}
.apollo-search-input {
    width: 100%; padding: 10px 40px 10px 40px;
    border: 1px solid var(--apollo-border);
    border-radius: var(--apollo-radius-sm);
    font-size: 14px; background: var(--apollo-bg);
    transition: border-color var(--apollo-transition);
}
.apollo-search-input:focus {
    outline: none; border-color: var(--apollo-primary);
    box-shadow: 0 0 0 3px var(--apollo-primary-light);
}
.apollo-search-close {
    position: absolute; right: 8px; background: none;
    border: none; cursor: pointer; color: var(--apollo-neutral); padding: 4px;
}
.apollo-search-results {
    margin-top: 8px; background: var(--apollo-white);
    border: 1px solid var(--apollo-border); border-radius: var(--apollo-radius-sm);
    max-height: 300px; overflow-y: auto;
}
.apollo-search-result-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; cursor: pointer;
    border-bottom: 1px solid var(--apollo-border);
    transition: background var(--apollo-transition);
}
.apollo-search-result-item:last-child { border-bottom: none; }
.apollo-search-result-item:hover { background: var(--apollo-primary-light); }
.apollo-search-result-item .dashicons {
    font-size: 20px; width: 20px; height: 20px; color: var(--apollo-primary);
}
.apollo-search-result-title { font-size: 14px; font-weight: 500; color: var(--apollo-text); }
.apollo-search-result-subtitle { font-size: 12px; color: var(--apollo-text-secondary); }
.apollo-search-empty { padding: 20px; text-align: center; color: var(--apollo-text-secondary); font-size: 14px; }

/* === Bottom Navigation === */
.apollo-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 1000; height: var(--apollo-nav-height);
    background: var(--apollo-dark);
    display: flex; align-items: center; justify-content: space-around;
    padding: 0 4px; box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
}
.apollo-nav-item {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; flex: 1;
    text-decoration: none; color: #888; padding: 6px 2px;
    transition: color var(--apollo-transition);
    gap: 2px; position: relative;
}
.apollo-nav-item .dashicons { font-size: 20px; width: 20px; height: 20px; }
.apollo-nav-label { font-size: 10px; font-weight: 500; white-space: nowrap; }
.apollo-nav-item.active { color: var(--apollo-primary); }
.apollo-nav-item.active::before {
    content: ''; position: absolute; top: 0; left: 50%;
    transform: translateX(-50%); width: 24px; height: 3px;
    background: var(--apollo-primary); border-radius: 0 0 3px 3px;
}
.apollo-nav-item:hover { color: var(--apollo-primary); text-decoration: none; }

/* === Page Container === */
.apollo-page {
    padding: 16px; padding-bottom: calc(var(--apollo-nav-height) + 20px);
    max-width: 1200px; margin: 0 auto;
    background: var(--apollo-white); min-height: 60vh;
}
.apollo-page-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; flex-wrap: wrap; gap: 12px;
}
.apollo-page-title-main {
    font-size: 20px; font-weight: 700; color: var(--apollo-text);
    display: flex; align-items: center; gap: 8px; margin: 0;
}
.apollo-page-title-main .dashicons { color: var(--apollo-primary); }
.apollo-counter {
    font-size: 13px; color: var(--apollo-text-secondary);
    margin-bottom: 12px; display: flex; align-items: center; gap: 4px;
}
.apollo-counter strong { color: var(--apollo-text); }

/* === Buttons === */
.apollo-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 20px; border-radius: var(--apollo-radius-xs);
    font-size: 14px; font-weight: 600; border: none;
    cursor: pointer; transition: all var(--apollo-transition);
    text-decoration: none; white-space: nowrap; font-family: var(--apollo-font);
}
.apollo-btn .dashicons { font-size: 16px; width: 16px; height: 16px; }
.apollo-btn-primary {
    background: var(--apollo-primary); color: white;
}
.apollo-btn-primary:hover {
    background: var(--apollo-primary-hover);
    box-shadow: 0 2px 8px rgba(235,119,12,0.3);
    transform: translateY(-1px);
}
.apollo-btn-secondary {
    background: transparent; color: var(--apollo-text);
    border: 1px solid var(--apollo-border);
}
.apollo-btn-secondary:hover { background: var(--apollo-neutral-light); }
.apollo-btn-danger { background: var(--apollo-danger); color: white; }
.apollo-btn-danger:hover { background: #dc2626; }
.apollo-btn-sm { padding: 6px 14px; font-size: 13px; }
.apollo-btn-block { width: 100%; justify-content: center; }

/* === Cards === */
.apollo-card {
    background: var(--apollo-white);
    border: 1px solid var(--apollo-border);
    border-radius: var(--apollo-radius);
    box-shadow: var(--apollo-shadow);
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow var(--apollo-transition);
}
.apollo-card:hover { box-shadow: var(--apollo-shadow-md); }
.apollo-card-header {
    padding: 14px 16px; border-bottom: 1px solid var(--apollo-border);
    display: flex; align-items: center; justify-content: space-between;
}
.apollo-card-header h3 {
    font-size: 15px; font-weight: 600; margin: 0;
    display: flex; align-items: center; gap: 8px;
    color: var(--apollo-text);
}
.apollo-card-header h3 .dashicons { color: var(--apollo-primary); font-size: 18px; width: 18px; height: 18px; }
.apollo-card-body { padding: 14px 16px; }
.apollo-card-footer {
    padding: 12px 16px; border-top: 1px solid var(--apollo-border);
    background: var(--apollo-bg); display: flex; justify-content: flex-end; gap: 8px;
}

/* === Item Card (List format) === */
.apollo-item-card {
    background: var(--apollo-white);
    border: 1px solid var(--apollo-border);
    border-radius: var(--apollo-radius);
    padding: 14px 16px; margin-bottom: 10px;
    box-shadow: var(--apollo-shadow);
    transition: all var(--apollo-transition);
    position: relative;
}
.apollo-item-card:hover { box-shadow: var(--apollo-shadow-md); border-color: var(--apollo-primary); }
.apollo-item-card:active { transform: scale(0.99); }
.apollo-item-card-top {
    display: flex; align-items: flex-start; justify-content: space-between;
    margin-bottom: 8px;
}
.apollo-item-card-title {
    font-size: 15px; font-weight: 600; color: var(--apollo-text);
    cursor: pointer; margin: 0;
}
.apollo-item-card-title:hover { color: var(--apollo-primary); }
.apollo-item-card-code {
    font-size: 11px; font-weight: 600; color: var(--apollo-primary);
    background: var(--apollo-primary-light); padding: 2px 8px;
    border-radius: 4px; white-space: nowrap;
}
.apollo-item-card-meta {
    display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px;
    color: var(--apollo-text-secondary);
}
.apollo-item-card-meta-item {
    display: flex; align-items: center; gap: 4px;
}
.apollo-item-card-meta-item .dashicons {
    font-size: 14px; width: 14px; height: 14px; color: var(--apollo-neutral);
}
.apollo-item-card-actions {
    display: flex; gap: 4px; margin-top: 10px;
    padding-top: 10px; border-top: 1px solid var(--apollo-border);
}
.apollo-action-btn {
    width: 32px; height: 32px; border: 1px solid var(--apollo-border);
    background: var(--apollo-white); border-radius: var(--apollo-radius-xs);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--apollo-text-secondary);
    transition: all var(--apollo-transition); padding: 0;
}
.apollo-action-btn:hover { background: var(--apollo-primary-light); color: var(--apollo-primary); border-color: var(--apollo-primary); }
.apollo-action-btn.danger:hover { background: var(--apollo-danger-light); color: var(--apollo-danger); border-color: var(--apollo-danger); }
.apollo-action-btn .dashicons { font-size: 16px; width: 16px; height: 16px; }

/* === Badges === */
.apollo-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: 20px; font-size: 11px;
    font-weight: 600; white-space: nowrap;
}
.apollo-badge-success { background: var(--apollo-success-light); color: #15803d; }
.apollo-badge-warning { background: var(--apollo-warning-light); color: #a16207; }
.apollo-badge-danger { background: var(--apollo-danger-light); color: #dc2626; }
.apollo-badge-neutral { background: var(--apollo-neutral-light); color: #4b5563; }
.apollo-badge-paid { background: var(--apollo-success); color: white; }
.apollo-badge-unpaid { background: var(--apollo-danger); color: white; }
.apollo-badge .dashicons { font-size: 12px; width: 12px; height: 12px; }

/* === Forms === */
.apollo-form-group { margin-bottom: 14px; }
.apollo-form-group label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--apollo-text); margin-bottom: 6px;
}
.apollo-input {
    width: 100%; padding: 10px 14px; border: 1px solid var(--apollo-border);
    border-radius: var(--apollo-radius-xs); font-size: 14px;
    font-family: var(--apollo-font); color: var(--apollo-text);
    background: var(--apollo-white);
    transition: border-color var(--apollo-transition), box-shadow var(--apollo-transition);
}
.apollo-input:focus {
    outline: none; border-color: var(--apollo-primary);
    box-shadow: 0 0 0 3px var(--apollo-primary-light);
}
.apollo-input::placeholder { color: var(--apollo-neutral); }
.apollo-textarea { min-height: 80px; resize: vertical; }
.apollo-select {
    appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
    padding-right: 36px;
}
.apollo-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.apollo-input-group {
    display: flex; gap: 0;
}
.apollo-input-group .apollo-input {
    border-radius: var(--apollo-radius-xs) 0 0 var(--apollo-radius-xs);
}
.apollo-input-group .apollo-select, .apollo-input-group select {
    border-radius: 0 var(--apollo-radius-xs) var(--apollo-radius-xs) 0;
    border-left: none; min-width: 70px; padding: 10px 8px;
    font-size: 13px; border: 1px solid var(--apollo-border);
    background: var(--apollo-bg); font-family: var(--apollo-font);
}
.apollo-hint { font-size: 12px; color: var(--apollo-text-secondary); margin-top: 4px; }
.apollo-form-actions { display: flex; gap: 8px; justify-content: flex-end; padding-top: 16px; }

/* === Modal === */
.apollo-modal-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(2px);
    display: flex; align-items: flex-end; justify-content: center;
    animation: apolloFadeIn 0.2s ease;
}
@keyframes apolloFadeIn { from { opacity: 0; } to { opacity: 1; } }
.apollo-modal {
    background: var(--apollo-white); width: 100%;
    max-width: 560px; max-height: 90vh;
    border-radius: var(--apollo-radius) var(--apollo-radius) 0 0;
    overflow-y: auto; animation: apolloSlideUp 0.3s ease;
}
@keyframes apolloSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.apollo-modal-header {
    position: sticky; top: 0; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; background: var(--apollo-white);
    border-bottom: 1px solid var(--apollo-border);
}
.apollo-modal-header h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--apollo-text); }
.apollo-modal-close {
    width: 32px; height: 32px; border: none; background: var(--apollo-neutral-light);
    border-radius: 50%; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    transition: background var(--apollo-transition); padding: 0;
}
.apollo-modal-close:hover { background: var(--apollo-danger-light); color: var(--apollo-danger); }
.apollo-modal-body { padding: 20px; }
.apollo-modal-footer {
    position: sticky; bottom: 0;
    padding: 16px 20px; background: var(--apollo-white);
    border-top: 1px solid var(--apollo-border);
    display: flex; gap: 8px; justify-content: flex-end;
}

/* === Expandable Card (Supplier Detail) === */
.apollo-expand-card {
    border: 1px solid var(--apollo-border);
    border-radius: var(--apollo-radius);
    margin-bottom: 10px; overflow: hidden;
    box-shadow: var(--apollo-shadow);
}
.apollo-expand-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; cursor: pointer;
    transition: background var(--apollo-transition);
}
.apollo-expand-header:hover { background: var(--apollo-bg); }
.apollo-expand-arrow {
    transition: transform 0.3s ease; color: var(--apollo-neutral);
}
.apollo-expand-card.open .apollo-expand-arrow { transform: rotate(180deg); }
.apollo-expand-body {
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
}
.apollo-expand-card.open .apollo-expand-body { max-height: 1000px; }
.apollo-expand-content {
    padding: 0 16px 16px;
    border-top: 1px solid var(--apollo-border);
}
.apollo-expand-detail {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    font-size: 13px; margin-top: 12px;
}
.apollo-expand-detail dt { color: var(--apollo-text-secondary); font-weight: 500; }
.apollo-expand-detail dd { color: var(--apollo-text); font-weight: 600; margin: 0; text-align: right; }

/* === Toast Notification === */
.apollo-toast {
    position: fixed; top: 20px; right: 20px; z-index: 99999;
    padding: 12px 20px; border-radius: var(--apollo-radius-sm);
    color: white; font-size: 14px; font-weight: 500;
    box-shadow: var(--apollo-shadow-lg);
    animation: apolloToastIn 0.3s ease, apolloToastOut 0.3s ease 2.7s forwards;
    display: flex; align-items: center; gap: 8px;
    font-family: var(--apollo-font);
}
.apollo-toast-success { background: var(--apollo-success); }
.apollo-toast-error { background: var(--apollo-danger); }
.apollo-toast-warning { background: var(--apollo-warning); color: var(--apollo-text); }
@keyframes apolloToastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes apolloToastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-10px); } }

/* === No Access === */
.apollo-no-access {
    text-align: center; padding: 60px 20px;
    color: var(--apollo-text-secondary); font-size: 16px;
}

/* === Fast Search Dropdown === */
.apollo-fast-search-wrap { position: relative; }
.apollo-fast-search-dropdown {
    position: absolute; top: 100%; left: 0; right: 0;
    z-index: 100; background: var(--apollo-white);
    border: 1px solid var(--apollo-border);
    border-radius: 0 0 var(--apollo-radius-xs) var(--apollo-radius-xs);
    max-height: 200px; overflow-y: auto;
    box-shadow: var(--apollo-shadow-md); display: none;
}
.apollo-fast-search-dropdown.show { display: block; }
.apollo-fast-search-option {
    padding: 10px 14px; cursor: pointer; font-size: 14px;
    border-bottom: 1px solid var(--apollo-border);
    transition: background var(--apollo-transition);
}
.apollo-fast-search-option:hover { background: var(--apollo-primary-light); }
.apollo-fast-search-option:last-child { border-bottom: none; }

/* === Loading Spinner === */
.apollo-loading {
    display: flex; align-items: center; justify-content: center;
    padding: 40px; color: var(--apollo-primary);
}
.apollo-spinner {
    width: 32px; height: 32px; border: 3px solid var(--apollo-border);
    border-top-color: var(--apollo-primary);
    border-radius: 50%; animation: apolloSpin 0.6s linear infinite;
}
@keyframes apolloSpin { to { transform: rotate(360deg); } }

/* === Empty State === */
.apollo-empty {
    text-align: center; padding: 48px 20px; color: var(--apollo-text-secondary);
}
.apollo-empty .dashicons { font-size: 48px; width: 48px; height: 48px; color: var(--apollo-neutral); margin-bottom: 12px; }
.apollo-empty p { font-size: 14px; margin: 4px 0; }

/* === Progress Bar (Proyek Dana vs Nilai) === */
.apollo-progress-wrap {
    margin-top: 10px; padding-top: 10px;
    border-top: 1px solid var(--apollo-border);
}
.apollo-progress-label {
    display: flex; justify-content: space-between;
    font-size: 12px; color: var(--apollo-text-secondary);
    margin-bottom: 6px;
}
.apollo-progress-bar {
    height: 6px; background: var(--apollo-neutral-light);
    border-radius: 3px; overflow: hidden;
}
.apollo-progress-fill {
    height: 100%; border-radius: 3px;
    transition: width 0.5s ease;
}

/* === Stat Card (Proyek Detail) === */
.apollo-stat-card {
    background: var(--apollo-bg);
    border: 1px solid var(--apollo-border);
    border-radius: var(--apollo-radius-sm);
    padding: 12px; text-align: center;
}
.apollo-stat-label {
    font-size: 11px; font-weight: 600;
    color: var(--apollo-text-secondary);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.apollo-stat-value {
    font-size: 16px; font-weight: 700;
    color: var(--apollo-text);
}

/* === Total Bar (Section Footer) === */
.apollo-total-bar {
    display: flex; justify-content: space-between;
    align-items: center; padding: 12px 16px;
    background: var(--apollo-primary-light);
    border: 1px solid var(--apollo-primary);
    border-radius: var(--apollo-radius-sm);
    font-size: 14px; color: var(--apollo-text);
    margin-top: 12px;
}
.apollo-total-bar strong {
    font-size: 16px; color: var(--apollo-primary);
}

/* === Section Divider === */
.apollo-section {
    margin-bottom: 24px;
}

/* === Invoice Info Grid === */
.apollo-invoice-info-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 8px; margin-top: 8px;
}
.apollo-info-label {
    display: block; font-size: 11px; font-weight: 600;
    color: var(--apollo-text-secondary);
    text-transform: uppercase; letter-spacing: 0.3px;
}
.apollo-info-value {
    font-size: 14px; font-weight: 600; color: var(--apollo-text);
}
.apollo-termin-badge {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--apollo-primary); color: white;
    font-size: 13px; font-weight: 700; padding: 2px 10px;
    border-radius: 4px; min-width: 44px;
}
.apollo-invoice-summary { margin-top: 16px; }

/* === Logo Link === */
.apollo-logo-link {
    display: flex; align-items: center;
    text-decoration: none;
}

/* === User Avatar Dropdown === */
.apollo-user-menu-wrap { position: relative; }
.apollo-user-dropdown {
    display: none; position: absolute;
    top: calc(100% + 8px); right: 0;
    min-width: 220px; background: var(--apollo-white);
    border: 1px solid var(--apollo-border);
    border-radius: var(--apollo-radius);
    box-shadow: var(--apollo-shadow-lg);
    z-index: 2000; overflow: hidden;
    animation: apolloDropdownIn 0.2s ease;
}
.apollo-user-dropdown.show { display: block; }
@keyframes apolloDropdownIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.apollo-user-dropdown-header {
    display: flex; align-items: center; gap: 12px;
    padding: 16px; background: var(--apollo-bg);
}
.apollo-user-dropdown-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--apollo-primary); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; flex-shrink: 0;
}
.apollo-user-dropdown-name {
    font-size: 14px; font-weight: 600; color: var(--apollo-text);
}
.apollo-user-dropdown-role {
    font-size: 12px; color: var(--apollo-text-secondary); margin-top: 2px;
}
.apollo-user-dropdown-divider {
    height: 1px; background: var(--apollo-border);
}
.apollo-user-dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; font-size: 14px; font-weight: 500;
    color: var(--apollo-text); text-decoration: none;
    transition: background var(--apollo-transition);
}
.apollo-user-dropdown-item:hover {
    background: var(--apollo-primary-light); color: var(--apollo-primary);
    text-decoration: none;
}
.apollo-user-dropdown-item .dashicons {
    font-size: 18px; width: 18px; height: 18px; color: var(--apollo-neutral);
}
.apollo-user-dropdown-item:hover .dashicons { color: var(--apollo-primary); }
.apollo-user-dropdown-logout:hover {
    background: var(--apollo-danger-light); color: var(--apollo-danger);
}
.apollo-user-dropdown-logout:hover .dashicons { color: var(--apollo-danger); }

/* === Custom Login Page === */
.apollo-login-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #fef3e6 0%, #ffffff 50%, #f9fafb 100%);
    padding: 20px; font-family: var(--apollo-font);
}
.apollo-login-card {
    width: 100%; max-width: 400px;
    background: var(--apollo-white);
    border-radius: var(--apollo-radius);
    box-shadow: var(--apollo-shadow-lg);
    overflow: hidden;
}
.apollo-login-header {
    text-align: center; padding: 32px 24px 20px;
    background: var(--apollo-dark);
}
.apollo-login-logo { height: 40px; width: auto; margin-bottom: 8px; }
.apollo-login-subtitle {
    font-size: 13px; color: #888; margin-top: 4px;
}
.apollo-login-body { padding: 28px 24px; }
.apollo-login-body .apollo-form-group { margin-bottom: 18px; }
.apollo-login-body .apollo-input {
    padding: 12px 14px; font-size: 15px;
}
.apollo-login-remember {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--apollo-text-secondary);
    margin-bottom: 20px;
}
.apollo-login-remember input[type="checkbox"] {
    accent-color: var(--apollo-primary);
    width: 16px; height: 16px;
}
.apollo-login-submit {
    width: 100%; padding: 14px; border: none;
    background: var(--apollo-primary); color: white;
    font-size: 16px; font-weight: 600;
    border-radius: var(--apollo-radius-xs);
    cursor: pointer; font-family: var(--apollo-font);
    transition: all var(--apollo-transition);
}
.apollo-login-submit:hover {
    background: var(--apollo-primary-hover);
    box-shadow: 0 4px 12px rgba(235,119,12,0.3);
    transform: translateY(-1px);
}
.apollo-login-error {
    background: var(--apollo-danger-light);
    color: var(--apollo-danger);
    padding: 10px 14px; border-radius: var(--apollo-radius-xs);
    font-size: 13px; margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
}
.apollo-login-footer {
    text-align: center; padding: 16px 24px;
    border-top: 1px solid var(--apollo-border);
    font-size: 12px; color: var(--apollo-text-secondary);
}

/* === Responsive: Tablet === */
@media (min-width: 768px) {
    .apollo-modal {
        border-radius: var(--apollo-radius);
        max-height: 85vh; margin: auto;
    }
    .apollo-modal-overlay { align-items: center; }
    @keyframes apolloSlideUp {
        from { opacity: 0; transform: scale(0.95); }
        to { opacity: 1; transform: scale(1); }
    }
    .apollo-page { padding: 24px; }
    .apollo-item-card { padding: 16px 20px; }
}

/* === Responsive: Desktop === */
@media (min-width: 1024px) {
    .apollo-bottom-nav {
        position: sticky; top: var(--apollo-header-height);
        bottom: auto; border-radius: 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.15);
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .apollo-page { padding-bottom: 40px; }
    .apollo-form-row { grid-template-columns: 1fr 1fr 1fr; }
}

