:root {
  --bg: #0c0d12;
  --bg-subtle: #13151f;
  --panel: #161824;
  --panel-solid: #1a1d2c;
  --panel-hover: #202436;
  --panel-card: #181a27;
  --panel-card-hover: #222638;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);

  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --brand-pink: #ec268f;
  --brand-pink-glow: rgba(236, 38, 143, 0.25);
  --brand-purple: #8b5cf6;
  --brand-blue: #0ea5e9;
  --brand-emerald: #10b981;
  --brand-amber: #f59e0b;
  --brand-rose: #f43f5e;

  --radius-xl: 16px;
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 6px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.5);

  --transition-fast: 120ms ease;
  --transition-normal: 200ms ease;
}

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

html {
  color-scheme: dark;
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  touch-action: manipulation;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: #38bdf8;
  text-decoration: underline;
}

/* Responsive Display Utilities */
.desktop-only { display: block; }
.mobile-only { display: none; }
.mobile-topbar-brand { display: none; }
.desktop-topbar-title { display: flex; flex-direction: column; }

/* ==========================================================================
   APP SHELL & DESKTOP SIDEBAR
   ========================================================================== */

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  transition: grid-template-columns var(--transition-normal);
  width: 100%;
  max-width: 100%;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 80px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 16px 20px;
  border-right: 1px solid var(--line);
  background: #11131c;
  display: flex;
  flex-direction: column;
  z-index: 40;
}

.brand-block {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 20px;
  border-bottom: 1px solid var(--line);
}

.brand-logo-wrap {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: #1e2130;
  border: 1px solid rgba(236, 38, 143, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.brand-copy {
  overflow: hidden;
  white-space: nowrap;
}

.brand-copy h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.brand-copy p {
  margin: 2px 0 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand-pink);
  text-transform: uppercase;
}

.sidebar-toggle {
  position: absolute;
  right: -6px;
  top: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--panel-solid);
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.sidebar-toggle:hover {
  color: var(--text);
  border-color: var(--brand-pink);
}

.app-shell.sidebar-collapsed .sidebar-toggle svg {
  transform: rotate(180deg);
}
.app-shell.sidebar-collapsed .brand-copy,
.app-shell.sidebar-collapsed .nav-label,
.app-shell.sidebar-collapsed .nav-badge,
.app-shell.sidebar-collapsed .sidebar-footer {
  display: none;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  transition: all var(--transition-fast);
  position: relative;
}

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

.nav-item.active {
  color: #ffffff;
  background: #1e2235;
  border: 1px solid rgba(236, 38, 143, 0.4);
}

.nav-item.active .nav-icon {
  color: var(--brand-pink);
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-dim);
  transition: color var(--transition-fast);
}

.nav-label {
  flex: 1;
  text-align: left;
  white-space: nowrap;
}

.nav-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}
.nav-badge.warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.app-version-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

/* ==========================================================================
   TOPBAR
   ========================================================================== */

.topbar {
  position: sticky;
  top: 0;
  height: 60px;
  padding: 0 24px;
  background: #11131c;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 30;
  width: 100%;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-app-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-pink);
  text-transform: uppercase;
}
.topbar-breadcrumb {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

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

.live-clock-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.live-clock-pill svg {
  color: var(--brand-blue);
}

/* ==========================================================================
   CONTENT LAYOUT & PANELS
   ========================================================================== */

.main-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.content-body {
  padding: 24px 28px 60px;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
}

.content-section {
  display: none;
  width: 100%;
}
.content-section.active {
  display: block;
}

/* Hero Panel */
.hero-panel {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #1f182c, #161824 70%);
  border: 1px solid rgba(236, 38, 143, 0.3);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.hero-content {
  position: relative;
  max-width: 680px;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(236, 38, 143, 0.15);
  border: 1px solid rgba(236, 38, 143, 0.3);
  color: #ff70ba;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-pink);
}

.hero-panel h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.hero-panel p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-visual {
  position: relative;
  z-index: 1;
}
.hero-logo-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

/* Stat Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  width: 100%;
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.stat-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon-wrap.primary {
  background: rgba(236, 38, 143, 0.15);
  color: var(--brand-pink);
  border: 1px solid rgba(236, 38, 143, 0.3);
}
.stat-icon-wrap.success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--brand-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.stat-icon-wrap.warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--brand-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.stat-info {
  display: flex;
  flex-direction: column;
}
.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.stat-value {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 1px 0;
}
.stat-caption {
  font-size: 11px;
  color: var(--text-dim);
}

/* ==========================================================================
   PANELS & TABLES
   ========================================================================== */

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 24px;
  width: 100%;
}

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

.panel-title-block {
  display: flex;
  flex-direction: column;
}
.panel-kicker, .section-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-blue);
  text-transform: uppercase;
}
.panel-header h3, .section-heading-bar h2 {
  margin: 2px 0 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-heading-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.section-heading-bar p {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  width: 100%;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.data-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}
.data-table tbody tr:last-child td {
  border-bottom: none;
}

.align-right { text-align: right; }

/* Status Badges & Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.pill.primary {
  background: rgba(236, 38, 143, 0.15);
  color: #ff70ba;
  border: 1px solid rgba(236, 38, 143, 0.3);
}
.pill.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.shift-badge {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.3);
  white-space: nowrap;
}
.shift-badge.malam {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border-color: rgba(139, 92, 246, 0.3);
}
.shift-badge.pagi {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

.operator-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.avatar-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: var(--brand-pink);
  flex-shrink: 0;
}

.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(37, 211, 102, 0.12);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.3);
  font-size: 12px;
  font-weight: 600;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.wa-btn:hover {
  background: rgba(37, 211, 102, 0.22);
  text-decoration: none;
}

.icon-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.icon-action-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.icon-action-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--line-strong);
}
.icon-action-btn.danger:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: var(--brand-rose);
  color: #fb7185;
}

/* ==========================================================================
   MOBILE CARDS VIEW (Responsive Table Alternative)
   ========================================================================== */

.mobile-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.mobile-table-card {
  background: var(--panel-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
}

.mobile-table-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mobile-table-card-main {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  word-break: break-word;
}

.mobile-table-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}

/* ==========================================================================
   PENUGASAN FILTER & DATE-GROUPED CARDS (DENGAN NOMOR URUT)
   ========================================================================== */

.panel-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  width: 100%;
}

.filter-controls-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-date-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.styled-month-input {
  background: var(--panel-solid);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  outline: none;
}
.styled-month-input:focus {
  border-color: var(--brand-pink);
}

/* Filter Tabs (Hemat Space: Semua - Belum - Sudah) */
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #11131c;
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar {
  display: none;
}

.tab-chip {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.tab-chip:hover {
  color: var(--text);
}
.tab-chip.active {
  background: var(--panel-solid);
  color: #ffffff;
}
.tab-chip.warning-chip.active {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.tab-chip.success-chip.active {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.tab-chip-count {
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 220px;
  flex: 1;
}
.search-input-wrap svg {
  position: absolute;
  left: 12px;
  color: var(--text-dim);
  pointer-events: none;
}
.search-input-wrap input {
  width: 100%;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 9px 12px 9px 36px;
  font-size: 14px;
  outline: none;
}
.search-input-wrap input:focus {
  border-color: var(--brand-pink);
}

/* Date-Grouped Schedule Cards */
.schedule-date-groups-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.date-group-card {
  background: var(--panel-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 18px 18px;
  width: 100%;
}

.date-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.date-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.date-group-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: rgba(236, 38, 143, 0.15);
  border: 1px solid rgba(236, 38, 143, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-pink);
  flex-shrink: 0;
}

.date-group-heading {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
}

.date-group-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

.date-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  width: 100%;
}

.event-card {
  background: #1d2030;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: border-color var(--transition-fast);
  width: 100%;
}

.event-card:hover {
  border-color: var(--line-strong);
}

.event-card.unassigned {
  border-left: 4px solid var(--brand-amber);
}
.event-card.assigned {
  border-left: 4px solid var(--brand-emerald);
}

.event-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.event-seq-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.seq-number-badge {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 7px;
  border-radius: 4px;
}

.event-card-body h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  color: #ffffff;
  word-break: break-word;
}

.event-assign-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.quick-assign-select {
  flex: 1;
  background: #13151f;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  min-height: 38px;
  max-width: 100%;
}
.quick-assign-select:focus {
  border-color: var(--brand-pink);
}

/* ==========================================================================
   SHIFT RANGE SELECTOR & PRESETS
   ========================================================================== */

.shift-range-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.shift-range-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shift-input-sublabel {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-dim);
}

.shift-quick-presets {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.shift-preset-chip {
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  transition: all var(--transition-fast);
}
.shift-preset-chip:hover {
  background: rgba(236, 38, 143, 0.15);
  border-color: var(--brand-pink);
  color: #ffffff;
}

/* ==========================================================================
   BUTTONS & FORMS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 700;
  min-height: 40px;
  transition: all var(--transition-fast);
  text-align: center;
  word-break: normal;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
  min-height: 32px;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: var(--brand-pink);
  color: #ffffff;
}
.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.btn-danger {
  background: var(--brand-rose);
  color: #ffffff;
}
.btn-danger:hover {
  filter: brightness(1.1);
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  background: var(--panel-solid);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-size: 15px;
  outline: none;
}
.form-control:focus {
  border-color: var(--brand-pink);
}

/* ==========================================================================
   MODALS
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 500px;
  background: #181b28;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-card.compact-modal {
  max-width: 420px;
}

.modal-card.confirm-card {
  max-width: 400px;
  text-align: center;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}
.modal-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-pink);
  text-transform: uppercase;
}
.modal-kicker.danger-kicker {
  color: var(--brand-rose);
}
.modal-header h3 {
  margin: 3px 0 0;
  font-size: 18px;
  font-weight: 800;
}

.icon-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 20px;
  line-height: 1;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}
.confirm-actions {
  justify-content: center;
  margin-top: 18px;
}

/* ==========================================================================
   REKAP BULANAN & EXPORT SHEET (1 JADWAL KE BAWAH, FULL RESPONSIVE)
   ========================================================================== */

.export-sheet-wrapper {
  overflow-x: auto;
  padding: 8px 0;
  width: 100%;
}

.export-sheet {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  background: #0f1016;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-lg);
}

.export-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--brand-pink);
  margin-bottom: 20px;
  gap: 12px;
}

.export-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.export-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.export-brand-text strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
}
.export-brand-text span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-pink);
}

.export-period-badge {
  text-align: right;
}
.period-title {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.export-period-badge strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-blue);
}

/* Rekap List 1 Jadwal ke Bawah */
.recap-date-groups-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.recap-date-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.recap-date-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.recap-date-heading {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

/* 1 Jadwal ke Bawah (Vertical Sequence) */
.recap-date-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.recap-card-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.recap-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.recap-item-number {
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-pink);
  background: rgba(236, 38, 143, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Judul Acara Lebih Ditegaskan */
.recap-card-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.4;
  word-break: break-word;
}

/* Petugas Lebih Jelas */
.recap-card-op-tag {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 4px;
}
.recap-op-label {
  color: var(--text-dim);
  font-weight: 600;
}
.recap-op-name {
  color: #34d399;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.recap-op-empty {
  color: #fbbf24;
  font-weight: 700;
  font-style: italic;
}

.export-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--text-dim);
}
.footer-brand-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.dot-pink {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-pink);
}

.preview-card {
  max-width: 850px;
}
.preview-body {
  max-height: 70vh;
  overflow-y: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #000000;
  margin-bottom: 16px;
}
.preview-body img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION BAR
   ========================================================================== */

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: #11131c;
  border-top: 1px solid var(--line);
  z-index: 999;
  padding: 0 4px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.mobile-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 700;
  height: 100%;
  transition: color var(--transition-fast);
}

.mobile-nav-btn.active {
  color: var(--brand-pink);
}
.mobile-nav-btn.active svg {
  transform: scale(1.08);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all var(--transition-fast);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.toast.error {
  background: #881337;
  border-color: #f43f5e;
  color: #ffe4e6;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE OVERHAUL (max-width: 900px)
   ========================================================================== */

@media (max-width: 900px) {
  /* 1. COMPLETELY HIDE DESKTOP SIDEBAR */
  .desktop-sidebar {
    display: none !important;
  }

  .app-shell {
    grid-template-columns: 100% !important;
    width: 100% !important;
  }

  /* 2. SHOW MOBILE BOTTOM NAV & HEADER BRAND */
  .mobile-bottom-nav {
    display: flex !important;
  }

  .desktop-topbar-title {
    display: none !important;
  }

  .mobile-topbar-brand {
    display: flex !important;
    align-items: center;
    gap: 8px;
  }
  .mobile-logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
  }
  .mobile-brand-text strong {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #ffffff;
    display: block;
    line-height: 1.1;
  }
  .mobile-brand-text span {
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--brand-pink);
    display: block;
  }

  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: flex !important;
  }

  /* 3. CONTENT PADDING FOR MOBILE */
  .topbar {
    padding: 0 14px;
    height: 52px;
  }
  .live-clock-pill {
    display: none;
  }

  .content-body {
    padding: 14px 12px 80px 12px;
    width: 100%;
  }

  /* 4. HERO PANEL COMPACT */
  .hero-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 16px;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
  }
  .hero-panel h2 {
    font-size: 20px;
  }
  .hero-panel p {
    font-size: 13px;
    margin-bottom: 14px;
  }
  .hero-visual {
    display: none;
  }
  .hero-actions {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }
  .hero-actions .btn {
    width: 100%;
  }

  /* 5. STATS GRID ON MOBILE */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }
  .stat-card {
    padding: 14px 16px;
  }

  /* 6. PANELS & SECTIONS */
  .panel {
    padding: 14px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
  }
  .section-heading-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
  }
  .section-heading-bar .btn {
    width: 100%;
  }

  /* 7. FILTERS & TABS */
  .panel-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 14px;
  }
  .filter-controls-group {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }
  .filter-date-item {
    justify-content: space-between;
    width: 100%;
  }
  .filter-tabs {
    width: 100%;
    justify-content: flex-start;
  }
  .search-input-wrap {
    min-width: 100%;
    width: 100%;
  }

  /* 8. DATE GROUPS ON MOBILE */
  .schedule-date-groups-wrapper {
    gap: 14px;
  }
  .date-group-card {
    padding: 12px 12px 14px;
  }
  .date-group-header {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .date-group-heading {
    font-size: 13.5px;
  }
  .date-events-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .event-card {
    padding: 12px;
  }
  .event-assign-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .event-assign-bar .wa-btn {
    justify-content: center;
    width: 100%;
  }

  /* 9. REKAP ON MOBILE */
  .recap-actions-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .recap-actions-group .btn {
    width: 100%;
  }

  .export-sheet {
    padding: 18px 14px;
    min-width: 100%;
  }
  .export-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .export-period-badge {
    text-align: left;
  }

  /* 10. MODALS ON MOBILE */
  .modal-backdrop {
    padding: 10px;
    align-items: flex-end;
  }
  .modal-card {
    max-width: 100%;
    padding: 20px 16px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    max-height: 85vh;
  }
  .modal-actions {
    flex-direction: column-reverse;
    gap: 8px;
  }
  .modal-actions .btn {
    width: 100%;
  }

  /* 11. TOAST POSITION OVER BOTTOM NAV */
  .toast {
    bottom: 74px;
    right: 14px;
    left: 14px;
    text-align: center;
  }
}
