@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Base Responsive Container */
.app-wrapper {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    padding: 10px;
}

/* =========================================================================
   TEMA 1: MODERN CLEAN GOVERNMENT (TEMA AWAL)
   ========================================================================= */
body.theme-1, body.theme-clean {
    background-color: #f1f5f9;
    color: #1e293b;
}

body.theme-1 .top-nav,
body.theme-1 .main-card,
body.theme-1 .nav-tabs-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-radius: 14px;
}

body.theme-1 .brand-icon {
    background: #1e40af;
    color: #ffffff;
    border-radius: 8px;
}

body.theme-1 .live-clock-badge {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    border-radius: 9999px;
}

body.theme-1 .pulse-dot {
    background: #1e40af;
}

body.theme-1 .tab-btn {
    color: #64748b;
    border-radius: 8px;
}

body.theme-1 .tab-btn:hover {
    background: #f8fafc;
    color: #1e40af;
}

body.theme-1 .tab-btn.active {
    background: #1e40af;
    color: #ffffff;
}

body.theme-1 .card-head-section {
    border-bottom: 1px solid #f1f5f9;
}

body.theme-1 .badge-status-pill {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #dbeafe;
    border-radius: 9999px;
}

body.theme-1 .centered-nav-controls {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

body.theme-1 .btn-nav-step {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    border-radius: 6px;
}

body.theme-1 .btn-nav-today-pill {
    background: #1e40af;
    color: #ffffff;
    border-radius: 6px;
}

body.theme-1 .custom-date-picker {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    border-radius: 6px;
}

body.theme-1 .duty-col-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

body.theme-1 .col-role-label,
body.theme-1 .label-lapangan,
body.theme-1 .label-kantor,
body.theme-1 .label-backup {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #dbeafe;
}

body.theme-1 .col-officer-name {
    color: #0f172a;
}

body.theme-1 .card-coord-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

body.theme-1 .coord-compact-row {
    border-bottom: 1px solid #e2e8f0;
}

body.theme-1 .coord-key { color: #64748b; }
body.theme-1 .coord-val-strong { color: #0f172a; }

body.theme-1 .btn-share-full,
body.theme-1 .btn-whatsapp-full {
    background: #1e40af;
    color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(30, 64, 175, 0.2);
}

body.theme-1 .btn-share-full:hover,
body.theme-1 .btn-whatsapp-full:hover {
    background: #1d4ed8;
}

/* Calendar Theme 1 */
body.theme-1 .btn-cal-arrow {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    border-radius: 6px;
}

body.theme-1 .cal-month-heading {
    color: #0f172a;
}

body.theme-1 .btn-cal-today {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    border-radius: 6px;
}

body.theme-1 .cal-date-input {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    border-radius: 6px;
}

body.theme-1 .cal-filter-bar {
    border-bottom: 1px solid #f1f5f9;
}

body.theme-1 .cal-filter-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    border-radius: 9999px;
}

body.theme-1 .cal-filter-chip.active {
    background: #1e40af;
    color: #ffffff;
    border-color: #1e40af;
}

body.theme-1 .traveloka-cal-grid {
    background: #e2e8f0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

body.theme-1 .cal-day-header-cell {
    background: #f8fafc;
    color: #64748b;
}

body.theme-1 .cal-day-header-cell.weekend {
    color: #dc2626;
    background: #fef2f2;
}

body.theme-1 .traveloka-day-cell {
    background: #ffffff;
}

body.theme-1 .traveloka-day-cell:hover {
    background: #f8fafc;
}

body.theme-1 .traveloka-day-cell.other-month {
    background: #fbfcfe;
    opacity: 0.35;
}

body.theme-1 .traveloka-day-cell.is-today {
    background: #eff6ff;
}

body.theme-1 .traveloka-day-cell.is-today .cell-date-num {
    background: #1e40af;
    color: #ffffff !important;
}

body.theme-1 .traveloka-day-cell.is-selected {
    background: #e0e7ff;
    box-shadow: inset 0 0 0 1.5px #1e40af;
}

body.theme-1 .traveloka-day-cell.is-holiday {
    background: #fef2f2;
}

body.theme-1 .traveloka-day-cell.is-holiday:hover {
    background: #fee2e2;
}

body.theme-1 .traveloka-day-cell.is-today.is-holiday .cell-date-num {
    background: #dc2626;
    color: #ffffff !important;
}

body.theme-1 .cell-date-num {
    color: #1e293b;
}

body.theme-1 .cell-date-num.is-holiday-num {
    color: #dc2626 !important;
}

body.theme-1 .name-row-1 { color: #1e40af; }
body.theme-1 .name-row-2 { color: #475569; }

body.theme-1 .name-row-1.highlight-match,
body.theme-1 .name-row-2.highlight-match {
    background: #0f172a;
    color: #ffffff !important;
}

/* =========================================================================
   TEMA 2: COMIC WEB STYLE / NEOBRUTALISM POP ART
   ========================================================================= */
body.theme-2, body.theme-comic {
    background-color: #faf8f5;
    background-image: radial-gradient(#cbd5e1 1.2px, transparent 1.2px);
    background-size: 14px 14px;
    color: #0f172a;
}

body.theme-2 .top-nav,
body.theme-2 .main-card {
    background: #ffffff;
    border: 2.5px solid #0f172a;
    box-shadow: 4px 4px 0px #0f172a;
    border-radius: 14px;
}

body.theme-2 .brand-icon {
    background: #fde047;
    color: #0f172a;
    border: 2px solid #0f172a;
    box-shadow: 2px 2px 0px #0f172a;
    border-radius: 8px;
}

body.theme-2 .live-clock-badge {
    background: #ffffff;
    border: 2px solid #0f172a;
    box-shadow: 2px 2px 0px #0f172a;
    color: #0f172a;
    border-radius: 9999px;
    font-weight: 800;
}

body.theme-2 .pulse-dot {
    background: #ef4444;
}

body.theme-2 .nav-tabs-container {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 8px;
}

body.theme-2 .tab-btn {
    background: #ffffff;
    border: 2.5px solid #0f172a;
    box-shadow: 3px 3px 0px #0f172a;
    color: #0f172a;
    font-weight: 800;
    border-radius: 10px;
    transition: all 0.1s ease;
}

body.theme-2 .tab-btn:hover {
    background: #f8fafc;
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0px #0f172a;
}

body.theme-2 .tab-btn.active {
    background: #fde047;
    box-shadow: 2px 2px 0px #0f172a;
    transform: translate(1px, 1px);
}

body.theme-2 .card-head-section {
    border-bottom: 2px dashed #cbd5e1;
}

body.theme-2 .badge-status-pill {
    background: #fde047;
    border: 2px solid #0f172a;
    box-shadow: 2px 2px 0px #0f172a;
    color: #0f172a;
    font-weight: 900;
    transform: rotate(-1.5deg);
    border-radius: 9999px;
}

body.theme-2 .centered-nav-controls {
    background: #f8fafc;
    border: 2px solid #0f172a;
    box-shadow: 2px 2px 0px #0f172a;
    border-radius: 8px;
}

body.theme-2 .btn-nav-step {
    background: #ffffff;
    border: 1.5px solid #0f172a;
    color: #0f172a;
    border-radius: 6px;
    font-weight: 800;
}

body.theme-2 .btn-nav-step:hover {
    background: #fde047;
    transform: translate(1px, 1px);
}

body.theme-2 .btn-nav-today-pill {
    background: #38bdf8;
    border: 1.5px solid #0f172a;
    color: #0f172a;
    font-weight: 800;
    border-radius: 6px;
}

body.theme-2 .btn-nav-today-pill:hover {
    background: #0ea5e9;
    transform: translate(1px, 1px);
}

body.theme-2 .custom-date-picker {
    background: #ffffff;
    border: 1.5px solid #0f172a;
    color: #0f172a;
    font-weight: 700;
    border-radius: 6px;
}

body.theme-2 .card-duty-3col {
    gap: 6px;
}

body.theme-2 .duty-col-item {
    background: #ffffff;
    border: 2px solid #0f172a;
    box-shadow: 2px 2px 0px #0f172a;
    border-radius: 8px;
}

body.theme-2 .col-role-label {
    background: #f1f5f9;
    border: 1.5px solid #0f172a;
    color: #0f172a;
    font-weight: 900;
    border-radius: 4px;
}

body.theme-2 .label-lapangan,
body.theme-2 .label-kantor,
body.theme-2 .label-backup {
    background: #f1f5f9;
    color: #0f172a;
}

body.theme-2 .col-officer-name {
    color: #0f172a;
    font-weight: 900;
}

body.theme-2 .card-coord-section {
    background: #f8fafc;
    border: 2px solid #0f172a;
    box-shadow: 2px 2px 0px #0f172a;
    border-radius: 8px;
}

body.theme-2 .coord-compact-row {
    border-bottom: 1.5px dashed #cbd5e1;
}

body.theme-2 .coord-key { color: #475569; font-weight: 700; }
body.theme-2 .coord-val-strong { color: #0f172a; font-weight: 900; }

body.theme-2 .btn-share-full,
body.theme-2 .btn-whatsapp-full {
    background: #38bdf8;
    border: 2.5px solid #0f172a;
    box-shadow: 3px 3px 0px #0f172a;
    color: #0f172a;
    font-weight: 900;
    border-radius: 8px;
}

body.theme-2 .btn-share-full:hover,
body.theme-2 .btn-whatsapp-full:hover {
    background: #0ea5e9;
    color: #0f172a;
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px #0f172a;
}

/* Calendar Theme 2 */
body.theme-2 .cal-nav-bar .btn-cal-arrow {
    background: #ffffff;
    border: 1.5px solid #0f172a;
    color: #0f172a;
    border-radius: 6px;
}

body.theme-2 .cal-month-heading {
    background: #fde047;
    border: 2px solid #0f172a;
    box-shadow: 2px 2px 0px #0f172a;
    color: #0f172a;
    border-radius: 6px;
    transform: rotate(-0.5deg);
    font-weight: 900;
}

body.theme-2 .btn-cal-today {
    background: #38bdf8;
    border: 1.5px solid #0f172a;
    color: #0f172a;
    font-weight: 800;
    border-radius: 6px;
}

body.theme-2 .cal-date-input {
    background: #ffffff;
    border: 1.5px solid #0f172a;
    color: #0f172a;
    font-weight: 700;
    border-radius: 6px;
}

body.theme-2 .cal-filter-bar {
    border-bottom: 2px dashed #cbd5e1;
}

body.theme-2 .cal-filter-chip {
    background: #ffffff;
    border: 1.5px solid #0f172a;
    color: #0f172a;
    font-weight: 800;
    border-radius: 9999px;
}

body.theme-2 .cal-filter-chip.active {
    background: #fde047;
    box-shadow: 1.5px 1.5px 0px #0f172a;
}

body.theme-2 .traveloka-cal-grid {
    background: #0f172a;
    border: 2px solid #0f172a;
    box-shadow: 3px 3px 0px #0f172a;
    border-radius: 8px;
}

body.theme-2 .cal-day-header-cell {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 900;
}

body.theme-2 .cal-day-header-cell.weekend {
    color: #ef4444;
    background: #fee2e2;
}

body.theme-2 .traveloka-day-cell {
    background: #ffffff;
}

body.theme-2 .traveloka-day-cell:hover {
    background: #fefce8;
}

body.theme-2 .traveloka-day-cell.other-month {
    background: #f8fafc;
    opacity: 0.35;
}

body.theme-2 .traveloka-day-cell.is-today {
    background: #e0f2fe;
}

body.theme-2 .traveloka-day-cell.is-today .cell-date-num {
    background: #2563eb;
    color: #ffffff !important;
}

body.theme-2 .traveloka-day-cell.is-selected {
    background: #fef08a;
}

body.theme-2 .traveloka-day-cell.is-holiday {
    background: #fee2e2;
}

body.theme-2 .traveloka-day-cell.is-holiday:hover {
    background: #fecaca;
}

body.theme-2 .traveloka-day-cell.is-today.is-holiday .cell-date-num {
    background: #ef4444;
    color: #ffffff !important;
}

body.theme-2 .cell-date-num {
    color: #0f172a;
    font-weight: 900;
}

body.theme-2 .cell-date-num.is-holiday-num {
    color: #ef4444 !important;
}

body.theme-2 .name-row-1 { color: #1d4ed8; font-weight: 800; }
body.theme-2 .name-row-2 { color: #334155; font-weight: 700; }

body.theme-2 .name-row-1.highlight-match,
body.theme-2 .name-row-2.highlight-match {
    background: #0f172a;
    color: #fde047 !important;
}

/* =========================================================================
   TEMA 3: DARK MODE EXECUTIVE
   ========================================================================= */
body.theme-3, body.theme-dark {
    background-color: #090d16;
    color: #e2e8f0;
}

body.theme-3 .top-nav,
body.theme-3 .main-card,
body.theme-3 .nav-tabs-container {
    background: #111827;
    border: 1px solid #1f2937;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    border-radius: 14px;
}

body.theme-3 .brand-icon {
    background: #38bdf8;
    color: #090d16;
    border-radius: 8px;
}

body.theme-3 .brand-info h1 { color: #f8fafc; }
body.theme-3 .brand-info p { color: #94a3b8; }

body.theme-3 .live-clock-badge {
    background: #1f2937;
    border: 1px solid #374151;
    color: #e2e8f0;
    border-radius: 9999px;
}

body.theme-3 .pulse-dot {
    background: #38bdf8;
}

body.theme-3 .tab-btn {
    color: #94a3b8;
    border-radius: 8px;
}

body.theme-3 .tab-btn:hover {
    background: #1f2937;
    color: #38bdf8;
}

body.theme-3 .tab-btn.active {
    background: #2563eb;
    color: #ffffff;
}

body.theme-3 .card-head-section {
    border-bottom: 1px solid #1f2937;
}

body.theme-3 .badge-status-pill {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 9999px;
}

body.theme-3 .centered-date-title { color: #f8fafc; }
body.theme-3 .centered-week-info { color: #94a3b8; }

body.theme-3 .holiday-alert-banner {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 9999px;
}

body.theme-3 .centered-nav-controls {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
}

body.theme-3 .btn-nav-step {
    background: #111827;
    border: 1px solid #374151;
    color: #e2e8f0;
    border-radius: 6px;
}

body.theme-3 .btn-nav-today-pill {
    background: #2563eb;
    color: #ffffff;
    border-radius: 6px;
}

body.theme-3 .custom-date-picker {
    background: #111827;
    border: 1px solid #374151;
    color: #e2e8f0;
    border-radius: 6px;
}

body.theme-3 .duty-col-item {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
}

body.theme-3 .label-lapangan { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }
body.theme-3 .label-kantor { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.4); }
body.theme-3 .label-backup { background: rgba(192, 132, 252, 0.2); color: #c084fc; border: 1px solid rgba(192, 132, 252, 0.4); }

body.theme-3 .col-officer-name { color: #f8fafc; }

body.theme-3 .card-coord-section {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
}

body.theme-3 .coord-compact-row { border-bottom: 1px solid #374151; }
body.theme-3 .coord-key { color: #94a3b8; }
body.theme-3 .coord-val-strong { color: #f8fafc; }

body.theme-3 .btn-share-full,
body.theme-3 .btn-whatsapp-full {
    background: #2563eb;
    color: #ffffff;
    border-radius: 8px;
}

body.theme-3 .btn-share-full:hover,
body.theme-3 .btn-whatsapp-full:hover { background: #1d4ed8; }

/* Calendar Theme 3 */
body.theme-3 .btn-cal-arrow {
    background: #1f2937;
    border: 1px solid #374151;
    color: #e2e8f0;
    border-radius: 6px;
}

body.theme-3 .cal-month-heading { color: #f8fafc; }

body.theme-3 .btn-cal-today {
    background: #1f2937;
    border: 1px solid #374151;
    color: #e2e8f0;
    border-radius: 6px;
}

body.theme-3 .cal-date-input {
    background: #111827;
    border: 1px solid #374151;
    color: #e2e8f0;
    border-radius: 6px;
}

body.theme-3 .cal-filter-bar { border-bottom: 1px solid #1f2937; }
body.theme-3 .filter-tag-label { color: #94a3b8; }

body.theme-3 .cal-filter-chip {
    background: #1f2937;
    border: 1px solid #374151;
    color: #e2e8f0;
    border-radius: 9999px;
}

body.theme-3 .cal-filter-chip.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

body.theme-3 .traveloka-cal-grid {
    background: #374151;
    border: 1px solid #374151;
    border-radius: 8px;
}

body.theme-3 .cal-day-header-cell {
    background: #1f2937;
    color: #94a3b8;
}

body.theme-3 .cal-day-header-cell.weekend {
    color: #f87171;
    background: rgba(239, 68, 68, 0.15);
}

body.theme-3 .traveloka-day-cell {
    background: #111827;
}

body.theme-3 .traveloka-day-cell:hover { background: #1f2937; }
body.theme-3 .traveloka-day-cell.other-month { background: #0b0f19; opacity: 0.3; }

body.theme-3 .traveloka-day-cell.is-today { background: rgba(37, 99, 235, 0.25); }
body.theme-3 .traveloka-day-cell.is-today .cell-date-num {
    background: #2563eb;
    color: #ffffff !important;
}

body.theme-3 .traveloka-day-cell.is-selected {
    background: #1e3a8a;
    box-shadow: inset 0 0 0 1.5px #38bdf8;
}

body.theme-3 .traveloka-day-cell.is-holiday {
    background: rgba(239, 68, 68, 0.15);
}

body.theme-3 .traveloka-day-cell.is-today.is-holiday .cell-date-num {
    background: #ef4444;
    color: #ffffff !important;
}

body.theme-3 .cell-date-num { color: #f8fafc; }
body.theme-3 .cell-date-num.is-holiday-num { color: #f87171 !important; }

body.theme-3 .name-row-1 { color: #38bdf8; }
body.theme-3 .name-row-2 { color: #94a3b8; }

body.theme-3 .name-row-1.highlight-match,
body.theme-3 .name-row-2.highlight-match {
    background: #38bdf8;
    color: #090d16 !important;
}

/* =========================================================================
   TEMA 4: EMERALD GREEN E-GOV
   ========================================================================= */
body.theme-4, body.theme-emerald {
    background-color: #f0fdf4;
    color: #064e3b;
}

body.theme-4 .top-nav,
body.theme-4 .main-card,
body.theme-4 .nav-tabs-container {
    background: #ffffff;
    border: 1px solid #bbf7d0;
    box-shadow: 0 1px 3px rgba(5, 150, 105, 0.08);
    border-radius: 14px;
}

body.theme-4 .brand-icon {
    background: #059669;
    color: #ffffff;
    border-radius: 8px;
}

body.theme-4 .live-clock-badge {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #065f46;
    border-radius: 9999px;
}

body.theme-4 .pulse-dot {
    background: #059669;
}

body.theme-4 .tab-btn {
    color: #047857;
    border-radius: 8px;
}

body.theme-4 .tab-btn:hover {
    background: #ecfdf5;
    color: #065f46;
}

body.theme-4 .tab-btn.active {
    background: #059669;
    color: #ffffff;
}

body.theme-4 .badge-status-pill {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: 9999px;
}

body.theme-4 .btn-nav-today-pill {
    background: #059669;
    color: #ffffff;
    border-radius: 6px;
}

body.theme-4 .duty-col-item {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
}

body.theme-4 .col-role-label,
body.theme-4 .label-lapangan,
body.theme-4 .label-kantor,
body.theme-4 .label-backup {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

body.theme-4 .card-coord-section {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
}

body.theme-4 .btn-share-full,
body.theme-4 .btn-whatsapp-full {
    background: #059669;
    color: #ffffff;
    border-radius: 8px;
}

body.theme-4 .btn-share-full:hover,
body.theme-4 .btn-whatsapp-full:hover {
    background: #047857;
}

body.theme-4 .traveloka-cal-grid {
    background: #bbf7d0;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
}

body.theme-4 .traveloka-day-cell.is-today {
    background: #dcfce7;
}

body.theme-4 .traveloka-day-cell.is-today .cell-date-num {
    background: #059669;
    color: #ffffff !important;
}

body.theme-4 .name-row-1 { color: #047857; font-weight: 700; }
body.theme-4 .name-row-2 { color: #334155; font-weight: 600; }

/* =========================================================================
   TEMA 5: 3D WEBSITE (CLAYMORPHISM, 3D TACTILE DEPTH & BEVEL LIGHTING)
   ========================================================================= */
body.theme-5, body.theme-3d {
    background: radial-gradient(circle at 50% -10%, #153a63 0%, #0d2948 50%, #071a30 100%);
    background-color: #0d2948;
    background-attachment: fixed;
    color: #0f172a;
}

body.theme-5 .app-footer {
    color: #93c5fd;
    opacity: 0.9;
}

body.theme-5 .top-nav,
body.theme-5 .main-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-top: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    box-shadow: 
        0 16px 32px -4px rgba(0, 0, 0, 0.35),
        0 8px 12px -4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -3px 0 rgba(0, 0, 0, 0.03);
}

body.theme-5 .brand-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

body.theme-5 .live-clock-badge {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06), inset 0 1px 0 #ffffff;
    color: #1e293b;
    border-radius: 9999px;
    font-weight: 700;
}

body.theme-5 .pulse-dot {
    background: #3b82f6;
    box-shadow: 0 0 8px #3b82f6;
}

body.theme-5 .nav-tabs-container {
    background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%);
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 5px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(255, 255, 255, 0.8);
    gap: 6px;
}

body.theme-5 .tab-btn {
    background: transparent;
    color: #475569;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.15s ease;
}

body.theme-5 .tab-btn.active {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #1d4ed8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 #ffffff, inset 0 -2px 0 rgba(0, 0, 0, 0.04);
}

body.theme-5 .card-head-section {
    border-bottom: 1px solid #e2e8f0;
}

body.theme-5 .badge-status-pill {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.15), inset 0 1px 0 #ffffff;
    color: #1d4ed8;
    font-weight: 800;
    border-radius: 9999px;
}

body.theme-5 .centered-nav-controls {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06), 0 1px 0 #ffffff;
    padding: 4px;
}

body.theme-5 .btn-nav-step {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    border: 1px solid #cbd5e1;
    color: #1e293b;
    border-radius: 8px;
    box-shadow: 0 2px 0 #cbd5e1, 0 3px 6px rgba(0, 0, 0, 0.05), inset 0 1px 0 #ffffff;
    transition: all 0.1s ease;
}

body.theme-5 .btn-nav-step:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 0 #cbd5e1, 0 4px 8px rgba(0, 0, 0, 0.08);
}

body.theme-5 .btn-nav-step:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 #cbd5e1, 0 1px 2px rgba(0, 0, 0, 0.05);
}

body.theme-5 .btn-nav-today-pill {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: #ffffff;
    font-weight: 800;
    border-radius: 8px;
    box-shadow: 0 3px 0 #1d4ed8, 0 4px 8px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.1s ease;
}

body.theme-5 .btn-nav-today-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 0 #1d4ed8, 0 6px 12px rgba(37, 99, 235, 0.4);
}

body.theme-5 .btn-nav-today-pill:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #1d4ed8, 0 2px 4px rgba(37, 99, 235, 0.2);
}

body.theme-5 .custom-date-picker {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
    font-weight: 600;
}

body.theme-5 .duty-col-item {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06), inset 0 1px 0 #ffffff, inset 0 -3px 0 rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.theme-5 .duty-col-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.09), inset 0 1px 0 #ffffff;
}

body.theme-5 .col-role-label {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-weight: 800;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.theme-5 .label-lapangan,
body.theme-5 .label-kantor,
body.theme-5 .label-backup {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #334155;
    border: 1px solid #cbd5e1;
}

body.theme-5 .col-officer-name {
    color: #0f172a;
    font-weight: 800;
}

body.theme-5 .card-coord-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: inset 0 1px 0 #ffffff, 0 2px 5px rgba(0, 0, 0, 0.04);
}

body.theme-5 .coord-compact-row {
    border-bottom: 1px solid #f1f5f9;
}

body.theme-5 .coord-key { color: #64748b; font-weight: 600; }
body.theme-5 .coord-val-strong { color: #0f172a; font-weight: 800; }

body.theme-5 .btn-share-full,
body.theme-5 .btn-whatsapp-full {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: #ffffff;
    font-weight: 800;
    border-radius: 12px;
    box-shadow: 0 4px 0 #1d4ed8, 0 8px 16px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    transition: all 0.12s ease;
}

body.theme-5 .btn-share-full:hover,
body.theme-5 .btn-whatsapp-full:hover {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 0 #1e40af, 0 10px 20px rgba(37, 99, 235, 0.45);
}

body.theme-5 .btn-share-full:active,
body.theme-5 .btn-whatsapp-full:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #1e40af, 0 3px 6px rgba(37, 99, 235, 0.2);
}

/* Calendar Theme 5 */
body.theme-5 .btn-cal-arrow {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    border: 1px solid #cbd5e1;
    color: #1e293b;
    border-radius: 8px;
    box-shadow: 0 2px 0 #cbd5e1, 0 3px 6px rgba(0, 0, 0, 0.05), inset 0 1px 0 #ffffff;
    transition: all 0.1s ease;
}

body.theme-5 .btn-cal-arrow:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 0 #cbd5e1, 0 4px 8px rgba(0, 0, 0, 0.08);
}

body.theme-5 .cal-month-heading {
    color: #0f172a;
    font-weight: 800;
}

body.theme-5 .btn-cal-today {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: #ffffff;
    font-weight: 800;
    border-radius: 8px;
    box-shadow: 0 2px 0 #1d4ed8, 0 3px 6px rgba(37, 99, 235, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.1s ease;
}

body.theme-5 .cal-date-input {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
    font-weight: 600;
}

body.theme-5 .cal-filter-bar {
    border-bottom: 1px solid #e2e8f0;
}

body.theme-5 .cal-filter-chip {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    border: 1px solid #cbd5e1;
    color: #334155;
    border-radius: 9999px;
    box-shadow: 0 2px 0 #cbd5e1, 0 2px 4px rgba(0, 0, 0, 0.04), inset 0 1px 0 #ffffff;
    font-weight: 700;
    transition: all 0.1s ease;
}

body.theme-5 .cal-filter-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 0 #cbd5e1;
}

body.theme-5 .cal-filter-chip.active {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 2px 0 #1d4ed8, 0 4px 8px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

body.theme-5 .traveloka-cal-grid {
    background: #cbd5e1;
    border: 1px solid #cbd5e1;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.08), 0 1px 0 #ffffff;
    border-radius: 12px;
    gap: 2px;
    padding: 2px;
}

body.theme-5 .cal-day-header-cell {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    color: #475569;
    font-weight: 800;
    border-radius: 4px;
}

body.theme-5 .cal-day-header-cell.weekend {
    color: #dc2626;
    background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
}

body.theme-5 .traveloka-day-cell {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.12s ease;
}

body.theme-5 .traveloka-day-cell:hover {
    background: #f0fdf4;
    transform: translateY(-1.5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08), inset 0 1px 0 #ffffff;
    z-index: 2;
}

body.theme-5 .traveloka-day-cell.other-month {
    background: #f8fafc;
    opacity: 0.35;
    box-shadow: none;
}

body.theme-5 .traveloka-day-cell.is-today {
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2), inset 0 1px 0 #ffffff;
}

body.theme-5 .traveloka-day-cell.is-today .cell-date-num {
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 2px 4px rgba(29, 78, 216, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: #ffffff !important;
    border-radius: 9999px;
    padding: 1px 5px;
}

body.theme-5 .traveloka-day-cell.is-selected {
    background: linear-gradient(180deg, #e0e7ff 0%, #c7d2fe 100%);
    box-shadow: inset 0 2px 4px rgba(79, 70, 229, 0.2), 0 2px 4px rgba(0, 0, 0, 0.08);
    border: 1.5px solid #6366f1;
}

body.theme-5 .traveloka-day-cell.is-holiday {
    background: linear-gradient(180deg, #fff5f5 0%, #fee2e2 100%);
}

body.theme-5 .traveloka-day-cell.is-holiday:hover {
    background: #fecaca;
}

body.theme-5 .traveloka-day-cell.is-today.is-holiday .cell-date-num {
    background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
    box-shadow: 0 2px 4px rgba(185, 28, 28, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: #ffffff !important;
}

body.theme-5 .cell-date-num {
    color: #0f172a;
    font-weight: 800;
}

body.theme-5 .cell-date-num.is-holiday-num {
    color: #dc2626 !important;
    font-weight: 900;
}

body.theme-5 .name-row-1 { color: #1d4ed8; font-weight: 700; }
body.theme-5 .name-row-2 { color: #334155; font-weight: 600; }

body.theme-5 .name-row-1.highlight-match,
body.theme-5 .name-row-2.highlight-match {
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff !important;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(29, 78, 216, 0.3);
}

/* =========================================================================
   CORE COMPONENT STRUCTURE (SHARED ACROSS ALL THEMES)
   ========================================================================= */

/* Header */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    margin-bottom: 8px;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.brand-info h1 {
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.2;
}

.brand-info p {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.live-clock-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* Nav Tabs */
.nav-tabs-container {
    display: flex;
    gap: 6px;
    padding: 4px;
    margin-bottom: 10px;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Main Card */
.main-card {
    padding: 16px 14px;
    margin-bottom: 10px;
}

/* 1. Header Tanggal & Navigasi */
.card-head-section {
    text-align: center;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.badge-status-pill {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 3px;
}

.centered-date-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.25;
}

.centered-week-info {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 2px;
    margin-bottom: 8px;
}

.holiday-alert-banner {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.centered-nav-controls {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 3px;
    margin: 0 auto;
    max-width: 100%;
}

.btn-nav-step, .btn-comic-arrow {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
}

.btn-nav-today-pill, .btn-comic-today {
    padding: 5px 10px;
    border: none;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.custom-date-picker, .comic-date-picker {
    padding: 4px 6px;
    font-family: inherit;
    font-size: 0.75rem;
    outline: none;
    cursor: pointer;
    width: 115px;
}

/* 2. Grid 3 Petugas */
.card-duty-3col, .comic-duty-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}

.duty-col-item, .comic-duty-box {
    padding: 10px 4px 8px;
    text-align: center;
}

.col-role-label, .comic-role-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.col-officer-name, .comic-officer-name {
    font-size: 1.05rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 3. Koordinator List */
.card-coord-section, .comic-coord-box {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.coord-compact-row, .comic-coord-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    padding-bottom: 5px;
}

.coord-compact-row:last-child, .comic-coord-row:last-child {
    border-bottom: none !important;
    padding-bottom: 0;
}

.coord-val-strong {
    text-align: right;
}

/* 4. Share Button */
.btn-share-full, .btn-whatsapp-full, .btn-comic-whatsapp {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: none;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.15s ease;
}

/* =========================================================
   CALENDAR SHARED STRUCTURE
   ========================================================= */

.calendar-wrapper-card {
    padding: 12px;
}

.cal-nav-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.cal-month-heading {
    font-size: 1.1rem;
    font-weight: 800;
    min-width: 140px;
    text-align: center;
}

.btn-cal-arrow {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
}

.cal-toolbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.btn-cal-today {
    padding: 4px 8px;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}

.cal-date-input, .comic-date-input {
    padding: 3px 6px;
    font-family: inherit;
    font-size: 0.72rem;
    outline: none;
    cursor: pointer;
    width: 110px;
}

.cal-filter-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 8px;
}

.filter-tag-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.filter-scroll-container {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.filter-scroll-container::-webkit-scrollbar {
    display: none;
}

.cal-filter-chip, .comic-filter-chip {
    padding: 3px 8px;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.traveloka-cal-grid, .comic-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    overflow: hidden;
}

.cal-day-header-cell {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 2px;
}

.traveloka-day-cell {
    min-height: 50px;
    padding: 3px 2px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.1s ease;
}

.cell-date-num {
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2px;
}

.name-row-1, .name-row-2 {
    font-size: 0.65rem;
    line-height: 1.15;
    text-align: center;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 16px 10px 8px;
    font-size: 0.72rem;
    font-weight: 500;
}

/* Toast */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0f172a;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* =========================================================================
   RESPONSIVE LAYOUT (DESKTOP GRID SIDE-BY-SIDE & MOBILE TABS)
   ========================================================================= */

@media (min-width: 900px) {
    .app-wrapper {
        max-width: 1100px;
        padding: 16px 20px;
    }

    .top-nav {
        padding: 12px 20px;
        margin-bottom: 16px;
    }

    .brand-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .brand-info h1 {
        font-size: 1.12rem;
    }

    .brand-info p {
        font-size: 0.75rem;
    }

    .live-clock-badge {
        padding: 6px 14px;
        font-size: 0.82rem;
    }

    /* Sembunyikan tab navigation di Desktop / PC */
    .nav-tabs-container {
        display: none !important;
    }

    /* Tampilkan layout grid 2 kolom: Kiri (Piket Hari Ini) & Kanan (Kalender) */
    .main-layout-grid {
        display: grid;
        grid-template-columns: 375px 1fr;
        gap: 16px;
        align-items: start;
    }

    /* Tampilkan kedua section secara bersamaan di Desktop */
    .tab-content {
        display: block !important;
        animation: none !important;
    }

    /* Kolom kiri dibuat sticky agar selalu terlihat saat navigasi kalender */
    #tab-harian {
        position: sticky;
        top: 16px;
        z-index: 10;
    }

    /* Di Desktop, panel detail duplikat di bawah kalender disembunyikan */
    #selectedDayPanel.mobile-only-panel {
        display: none !important;
    }

    /* Optimasi ukuran sel kalender pada layar Desktop */
    .traveloka-day-cell {
        min-height: 58px;
        padding: 4px 3px;
    }

    .cell-date-num {
        font-size: 0.84rem;
        margin-bottom: 3px;
    }

    .name-row-1, .name-row-2 {
        font-size: 0.72rem;
        line-height: 1.25;
    }

    .cal-month-heading {
        font-size: 1.2rem;
    }

    .card-head-section {
        padding-bottom: 14px;
        margin-bottom: 14px;
    }

    .centered-date-title {
        font-size: 1.28rem;
    }

    .col-officer-name {
        font-size: 1.08rem;
    }
}
