/* ============================================================
   Creator Panel: stylesheet untuk template admin konten kreator.
   Warna terang dominan putih, aksen gradien Instagram.
   ============================================================ */

:root {
  /* Aksen brand Instagram */
  --ig-orange: #f58529;
  --ig-pink: #e4405f;
  --ig-deep: #dd2a7b;
  --ig-purple: #8134af;
  --ig-gradient: linear-gradient(135deg, #f58529 0%, #e4405f 38%, #dd2a7b 58%, #8134af 100%);

  /* Warna aksen interaktif: deep pink, teks putih di atasnya = 5.1:1 */
  --brand: #c13584;
  --brand-strong: #a12270;
  --brand-ink: #8e135f;
  --brand-soft: #9d1b63;

  /* Netral hangat */
  --bg: #faf6f8;
  --surface: #ffffff;
  --ink: #2f232b;
  --muted: #6b6368;
  --line: #f0e4ea;
  --tint: #fbeff4;
  --tint-strong: #f5dce8;

  /* Status, selalu dengan label teks */
  --success: #1c7c4d;
  --success-bg: #e4f5ec;
  --danger: #a8253c;
  --danger-bg: #fce9ed;
  --warning: #96620f;
  --warning-bg: #fcf3de;
  --info: #0e668f;
  --info-bg: #e3f2fa;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 1px 2px rgba(47, 35, 43, 0.05), 0 6px 18px -8px rgba(47, 35, 43, 0.12);
  --shadow-lift: 0 12px 28px -12px rgba(47, 35, 43, 0.24);
}

/* ---------- Dasar ---------- */

html {
  height: 100%;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.55;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  color: var(--brand-strong);
}

/* Fokus terlihat untuk navigasi keyboard, bukan outline hapus */
:focus-visible {
  outline: 3px solid rgba(193, 53, 132, 0.45);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--tint-strong);
}

/* ---------- Kerangka aplikasi ---------- */

.app-shell {
  min-height: 100vh;
}

.main {
  margin-left: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding: 1.5rem 1rem 4rem;
  width: 100%;
}

@media (min-width: 576px) {
  .main-content {
    padding: 1.75rem 1.5rem 4rem;
  }
}

@media (min-width: 992px) {
  .main {
    margin-left: 264px;
  }
  .main-content {
    padding: 2rem 2.25rem 5rem;
  }
}

/* ---------- Sidebar ---------- */

.sidebar {
  width: 264px;
  max-width: 264px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

@media (min-width: 992px) {
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    transform: none !important;
    visibility: visible !important;
  }
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem 1rem 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.25rem 0.5rem 1rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--ig-gradient);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 6px 14px -6px rgba(221, 42, 123, 0.55);
}

.brand-text {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}
.brand-text span {
  color: var(--brand);
}

.sidebar-close {
  margin-left: auto;
  align-self: flex-start;
}

.nav-caption {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 1.25rem 0.5rem 0.5rem;
}

.nav-link-custom {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 46px;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
  border-left: 3px solid transparent;
}

.nav-link-custom i {
  font-size: 1.1rem;
  color: var(--muted);
  width: 20px;
  text-align: center;
  transition: color 0.15s ease;
}

.nav-link-custom:hover {
  background: var(--tint);
  color: var(--brand-strong);
}
.nav-link-custom:hover i {
  color: var(--brand);
}

.nav-link-custom.active {
  background: var(--tint);
  border-left-color: var(--brand);
  color: var(--brand-strong);
  font-weight: 700;
}
.nav-link-custom.active i {
  color: var(--brand);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
}

.demo-note {
  display: flex;
  gap: 0.6rem;
  background: var(--tint);
  border: 1px solid var(--tint-strong);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
  font-size: 0.8rem;
  color: var(--brand-soft);
  line-height: 1.45;
}
.demo-note i {
  font-size: 1rem;
  margin-top: 0.1rem;
}

/* ---------- Topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 1rem;
  min-height: 64px;
}

@media (min-width: 576px) {
  .topbar {
    padding: 0.7rem 1.5rem;
  }
}

@media (min-width: 992px) {
  .topbar {
    padding: 0.7rem 2.25rem;
  }
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.topbar-title {
  font-size: 1.15rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-subtitle {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 992px) {
  .topbar-title {
    font-size: 1.3rem;
  }
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon {
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.btn-icon:hover {
  background: var(--tint);
  color: var(--brand-strong);
}

.dot-indicator {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ig-pink);
  border: 2px solid #fff;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.35rem 0.6rem 0.35rem 0.45rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.user-chip:hover {
  background: var(--tint);
  border-color: var(--tint-strong);
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ig-gradient);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-chip-text {
  text-align: left;
  line-height: 1.2;
  font-weight: 700;
  font-size: 0.88rem;
  display: block;
}

.user-chip-role {
  display: block;
  font-weight: 500;
  font-size: 0.74rem;
  color: var(--muted);
}

.dropdown-menu {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 0.5rem;
  min-width: 220px;
}

.dropdown-item {
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
}
.dropdown-item i {
  color: var(--muted);
  font-size: 1rem;
}
.dropdown-item:hover {
  background: var(--tint);
  color: var(--brand-strong);
}
.dropdown-item:hover i {
  color: var(--brand);
}

.notification-menu {
  width: 320px;
  max-width: calc(100vw - 2rem);
}

.dropdown-header {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0.4rem 0.5rem 0.5rem;
}

.empty-state-sm {
  text-align: center;
  padding: 1.4rem 1rem;
  color: var(--muted);
  font-size: 0.84rem;
}
.empty-state-sm i {
  display: block;
  font-size: 1.6rem;
  color: var(--tint-strong);
  margin-bottom: 0.5rem;
}

/* Pencarian di topbar (halaman tabel): satu baris penuh di ponsel */
.topbar {
  flex-wrap: wrap;
}

.topbar-search {
  display: flex;
  align-items: center;
  position: relative;
  flex: 1 0 100%;
  order: 3;
  margin-top: 0.5rem;
}
.topbar-search .bi-search {
  position: absolute;
  left: 12px;
  color: var(--muted);
  pointer-events: none;
}
.topbar-search input {
  padding-left: 2.2rem;
  width: 100%;
}

@media (min-width: 768px) {
  .topbar-search {
    flex: 0 1 auto;
    order: 0;
    margin-top: 0;
  }
  .topbar-search input {
    width: 240px;
  }
}

/* ---------- Tombol ---------- */

.btn {
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.05rem;
}

.btn-brand {
  background: var(--brand);
  border: 1px solid var(--brand);
  color: #fff;
}
.btn-brand:hover,
.btn-brand:focus {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  color: #fff;
}
.btn-brand:active {
  background: var(--brand-ink);
  border-color: var(--brand-ink);
  color: #fff;
}

.btn-soft {
  background: var(--tint);
  border: 1px solid var(--tint-strong);
  color: var(--brand-soft);
}
.btn-soft:hover,
.btn-soft:focus {
  background: var(--tint-strong);
  border-color: var(--tint-strong);
  color: var(--brand-strong);
}

.btn-outline-brand {
  border: 1.5px solid var(--brand);
  color: var(--brand);
  background: transparent;
}
.btn-outline-brand:hover,
.btn-outline-brand:focus {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--tint);
  color: var(--brand-strong);
}

.btn-lg {
  min-height: 50px;
}

.btn-sm {
  min-height: 38px;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
}

/* ---------- Badge status & tanda ---------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-live {
  background: var(--success-bg);
  color: var(--success);
}
.status-draft {
  background: #efecee;
  color: #5b5459;
}
.status-scheduled {
  background: var(--info-bg);
  color: var(--info);
}
.status-missed {
  background: var(--danger-bg);
  color: var(--danger);
}

.badge-contoh {
  background: var(--tint);
  border: 1px solid var(--tint-strong);
  color: var(--brand-soft);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  letter-spacing: 0.02em;
}

/* ---------- Kartu ---------- */

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.card-body {
  padding: 1.25rem;
}

.card-title {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.card-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

/* Kartu sorotan: garis gradien di atas menandai metrik utama */
.card-hl {
  position: relative;
  overflow: hidden;
}
.card-hl::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--ig-gradient);
}

.hl-number {
  font-size: 2.9rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0.2rem 0 0.3rem;
}

.hl-note {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 0;
  max-width: 46ch;
}

.hl-bars {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hl-bar-row {
  display: grid;
  gap: 0.45rem;
}

.hl-bar-row .row-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.hl-bar-row .row-label strong {
  color: var(--ink);
}

@media (min-width: 1200px) {
  .hl-bars {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

/* Kartu statistik */
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: 100%;
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.icon-chip {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--tint);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stat-value {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

.stat-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.stat-foot {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ---------- Progress ---------- */

.progress {
  height: 9px;
  background: var(--tint);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  background: var(--brand);
  border-radius: 999px;
}
.progress-bar.gradient {
  background: var(--ig-gradient);
}

/* ---------- Aktivitas & aksi cepat ---------- */

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.activity-item:last-child {
  border-bottom: none;
  padding-bottom: 0.15rem;
}

.activity-body {
  flex: 1;
  min-width: 0;
}
.activity-body p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}
.activity-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.quick-actions {
  display: grid;
  gap: 0.6rem;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.quick-action:hover {
  background: var(--tint);
  border-color: var(--tint-strong);
  color: var(--ink);
}
.quick-action .icon-chip {
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
}
.quick-action-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}
.quick-action-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.1rem 0 0;
  line-height: 1.4;
}
.quick-action-arrow {
  margin-left: auto;
  color: var(--muted);
  flex-shrink: 0;
}

/* ---------- Banner demo ---------- */

.demo-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  background: var(--warning-bg);
  border: 1px solid #f3e2b8;
  color: var(--warning);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  font-size: 0.86rem;
}
.demo-banner i {
  font-size: 1.1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}
.demo-banner .btn-close {
  margin-left: auto;
}

/* ---------- Halaman tabel ---------- */

.table-card .card-body {
  padding: 0.75rem 1rem 1.25rem;
}

.table-card .table {
  margin-bottom: 0;
  vertical-align: middle;
  --bs-table-hover-bg: var(--tint);
  --bs-table-hover-color: var(--ink);
}

.table-card .table thead th {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0.75rem;
  white-space: nowrap;
}

.table-card .table tbody td {
  padding: 0.85rem 0.75rem;
  border-color: var(--line);
  font-size: 0.9rem;
}

.cell-title {
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.cell-sub {
  font-size: 0.78rem;
  color: var(--muted);
}

.table-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* DataTables */
.dataTables_wrapper {
  padding-top: 0.5rem;
}

.table-toolbar {
  padding: 0.5rem 0.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.86rem;
}

.table-toolbar select.form-select {
  width: auto;
  min-height: 38px;
  display: inline-block;
  padding: 0.3rem 2rem 0.3rem 0.7rem;
}

.dataTables_wrapper .dataTables_info {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.8rem 0 0;
}

.dataTables_wrapper .dataTables_paginate {
  padding: 0.8rem 0 0;
}

.dataTables_wrapper .pagination {
  margin: 0;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.dataTables_wrapper .page-link {
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--line);
  color: var(--ink);
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.86rem;
}
.dataTables_wrapper .page-link:hover {
  background: var(--tint);
  color: var(--brand-strong);
}
.dataTables_wrapper .page-item.active .page-link {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.dataTables_wrapper .page-item.disabled .page-link {
  color: var(--muted);
}

/* Input cari & panjang DataTables */
.dataTables_wrapper .form-select:focus,
.dataTables_wrapper .form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(193, 53, 132, 0.15);
}

/* ---------- Kalender ---------- */

#calendar {
  min-height: 480px;
}

.fc .fc-toolbar-title {
  font-size: 1.15rem !important;
  font-weight: 800;
}

.fc .fc-button {
  min-height: 38px;
  border-radius: var(--radius-sm) !important;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.35rem 0.9rem;
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  text-transform: capitalize;
}
.fc .fc-button:hover {
  background: var(--tint);
  border-color: var(--tint-strong);
  color: var(--brand-strong);
}
.fc .fc-button-primary:not(:disabled).fc-button-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.fc .fc-button-primary:disabled {
  background: var(--surface);
  border-color: var(--line);
  color: var(--muted);
}

.fc .fc-col-header-cell-cushion {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.7rem 0.35rem;
}

.fc .fc-daygrid-day-frame {
  min-height: 90px;
}

.fc .fc-daygrid-day-number {
  font-size: 0.84rem;
  color: var(--ink);
  padding: 0.4rem 0.4rem 0;
  font-weight: 600;
}

.fc .fc-day-today {
  background: var(--tint) !important;
}

.fc .fc-daygrid-event {
  border-radius: 9px;
  border: none;
  border-left: 4px solid var(--brand);
  background: var(--tint);
  color: var(--brand-soft);
  padding: 0.2rem 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.fc .fc-daygrid-event:hover {
  background: var(--tint-strong);
  color: var(--brand-strong);
}
.fc .fc-daygrid-event .fc-event-time {
  font-weight: 600;
}

.fc .fc-event.ev-live {
  border-left-color: var(--success);
  background: var(--success-bg);
  color: var(--success);
}
.fc .fc-event.ev-draft {
  border-left-color: #8a8087;
  background: #efecee;
  color: #5b5459;
}
.fc .fc-event.ev-scheduled {
  border-left-color: var(--info);
  background: var(--info-bg);
  color: var(--info);
}
.fc .fc-event.ev-missed {
  border-left-color: var(--danger);
  background: var(--danger-bg);
  color: var(--danger);
}

.fc .fc-list-event {
  border-radius: var(--radius-sm);
}
.fc .fc-list-event-dot {
  border-color: var(--brand);
}
.fc .fc-list-day-cushion {
  background: var(--tint) !important;
  padding: 0.6rem 0.8rem !important;
}
.fc .fc-list-day-cushion a {
  color: var(--brand-soft);
}

@media (max-width: 575.98px) {
  .fc .fc-toolbar.fc-header-toolbar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .fc .fc-toolbar-chunk {
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }
  .fc .fc-toolbar-title {
    order: 3;
    flex: 1 0 100%;
    text-align: center;
  }
}

/* ---------- Formulir ---------- */

.form-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.form-control,
.form-select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  font-size: 0.92rem;
  color: var(--ink);
  background-color: var(--surface);
  min-height: 46px;
}
.form-control::placeholder {
  color: #a59aa0;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(193, 53, 132, 0.15);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.valid-feedback,
.invalid-feedback {
  font-size: 0.78rem;
  font-weight: 600;
}

.input-group-text {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 0;
}

.input-group .input-group-text:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.input-group .form-control:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--tint);
  border: 1px solid var(--tint-strong);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.8rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brand-soft);
}

.form-check-input:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}
.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(193, 53, 132, 0.15);
}

/* ---------- Modal ---------- */

.modal-content {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}

.modal-header {
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem;
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 800;
}

.modal-footer {
  border-top: 1px solid var(--line);
  padding: 0.85rem 1.25rem;
}

/* ---------- Toast ---------- */

.toast {
  border: 1px solid var(--line);
  border-left: 4px solid var(--success);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
  background: var(--surface);
  font-size: 0.88rem;
}
.toast.toast-danger {
  border-left-color: var(--danger);
}
.toast.toast-info {
  border-left-color: var(--info);
}

.toast-header {
  background: transparent;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.toast-container {
  z-index: 1080;
}

/* ---------- Halaman login ---------- */

.auth-body {
  min-height: 100vh;
  background: var(--surface);
}

.auth-panel {
  position: relative;
  min-height: 100vh;
  background: var(--ig-gradient);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Lapisan gelap agar teks putih memenuhi kontras 4.5:1 */
.auth-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(70, 13, 46, 0.62) 0%, rgba(94, 18, 61, 0.42) 55%, rgba(38, 22, 92, 0.55) 100%);
}

.auth-panel-inner {
  position: relative;
  z-index: 1;
  padding: 3rem;
  color: #fff;
  max-width: 520px;
}

.auth-panel .brand-mark {
  width: 52px;
  height: 52px;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.auth-panel h1 {
  color: #fff;
  font-size: 1.9rem;
  font-weight: 800;
  margin-top: 1.5rem;
}

.auth-panel p.lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
  margin-top: 0.75rem;
}

.auth-panel ul {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.auth-panel li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.auth-panel li i {
  color: #ffd9a8;
  font-size: 1.05rem;
}

.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-card .brand-mark {
  margin-bottom: 1.25rem;
}

.auth-card h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.auth-card .auth-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.6rem;
}

/* ---------- Ladda ---------- */

.ladda-button .ladda-spinner {
  display: none;
}
.ladda-button[data-loading] .ladda-spinner {
  display: block;
}

/* Spinner putih untuk tombol brand */
.btn-brand .ladda-spinner div,
.btn-outline-brand .ladda-spinner div {
  background: #fff;
}
.btn-soft .ladda-spinner div {
  background: var(--brand-soft);
}

/* ---------- Utilitas ---------- */

.text-muted-soft {
  color: var(--muted);
}

.bg-tint {
  background-color: var(--tint);
}

.card-divider {
  border-top: 1px solid var(--line);
  margin: 1.25rem 0;
}

.link-detail {
  font-size: 0.85rem;
  font-weight: 700;
}

