@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* =====================================================================
   Wawancara PMB — Theme Override Layer  (v1, 2026-06-20)
   Loaded AFTER Vuexy core.css/theme-default.css. Override-only:
   no markup/JS changes required. Rebrands Vuexy purple -> Unila
   institutional blue + green accent, and refines typography, surfaces,
   spacing, radius, shadows and key components. Dark mode kept intact.
   To disable: remove the <link> in layouts/sections/styles*.blade.php
   ===================================================================== */

:root {
  /* ---- Brand ---- */
  --wc-primary:        #1b5e9c;   /* institutional blue */
  --wc-primary-rgb:    27, 94, 156;
  --wc-primary-600:    #17517f;
  --wc-primary-700:    #123f6b;
  --wc-primary-050:    #eaf2fa;   /* soft tint for labels/hover */
  --wc-accent:         #1f8a4c;   /* Unila green */
  --wc-accent-rgb:     31, 138, 76;
  --wc-accent-050:     #e9f5ee;

  /* ---- Neutrals / surfaces (light) ---- */
  --wc-bg:             #f4f7fb;
  --wc-surface:        #ffffff;
  --wc-surface-2:      #f8fafc;
  --wc-border:         #e6eaf1;
  --wc-text:           #1f2733;
  --wc-muted:          #6b7685;

  /* ---- Shape & depth ---- */
  --wc-radius:         .75rem;
  --wc-radius-sm:      .5rem;
  --wc-radius-pill:    50rem;
  --wc-shadow-sm:      0 1px 2px rgba(16,24,40,.05);
  --wc-shadow:         0 2px 8px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04);
  --wc-shadow-lg:      0 10px 30px rgba(16,24,40,.10);

  /* ---- Type ---- */
  --wc-font: 'Plus Jakarta Sans', 'Inter', 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Map onto Bootstrap 5.3 runtime variables */
  --bs-body-font-family: var(--wc-font);
  --bs-primary: var(--wc-primary);
  --bs-primary-rgb: var(--wc-primary-rgb);
  --bs-link-color: var(--wc-primary);
  --bs-link-color-rgb: var(--wc-primary-rgb);
  --bs-link-hover-color: var(--wc-primary-700);
  --bs-border-radius: var(--wc-radius-sm);
}

/* ===================== Typography ===================== */
body {
  font-family: var(--wc-font);
  letter-spacing: -0.005em;
}
.light-style body { background-color: var(--wc-bg); color: var(--wc-text); }

h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6 { font-weight: 600; letter-spacing: -0.015em; }
.fw-semibold { font-weight: 600 !important; }
.text-muted { color: var(--wc-muted) !important; }
small, .small { font-size: .8125rem; }

/* Font UI seragam di SELURUH template (layout + konten). Vuexy set font sendiri di menu/navbar */
body, button, input, select, textarea, optgroup,
.btn, .form-control, .form-select, .input-group-text, .dropdown-menu, .card, .modal, .offcanvas,
.nav, .table, .badge, .alert, .breadcrumb, .pagination,
.swal2-popup, .dataTables_wrapper,
/* Sidebar / menu */
.layout-menu, .menu, .menu-inner, .menu-item, .menu-link, .menu-link div, .menu-text,
.menu-header, .menu-header-text, .menu-block, .menu-sub, .app-brand, .app-brand-text,
/* Navbar atas */
.layout-navbar, .navbar, .navbar-nav, .dropdown-item,
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--wc-font) !important; }

/* Skala ukuran font konsisten */
body { font-size: .9375rem; }
.card-title { font-size: 1.0625rem; font-weight: 600; }
h4, .h4 { font-size: 1.35rem; }
h5, .h5 { font-size: 1.0625rem; }
h6, .h6 { font-size: .95rem; }
.table { font-size: .8125rem; } /* selaras dengan input filter (form-control-sm = .8125rem) */
.badge { font-size: .75rem; }
.form-label { font-size: .85rem; }
.btn { font-size: .9rem; }

/* tabular figures for data-heavy UIs (tables, stats) */
.table, .dataTable, .card-title.fw-bold, .display-6, td, th, .badge {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ===================== Brand color (light + dark) ===================== */
.btn-primary {
  --bs-btn-bg: var(--wc-primary);
  --bs-btn-border-color: var(--wc-primary);
  --bs-btn-hover-bg: var(--wc-primary-600);
  --bs-btn-hover-border-color: var(--wc-primary-600);
  --bs-btn-active-bg: var(--wc-primary-700);
  --bs-btn-active-border-color: var(--wc-primary-700);
  --bs-btn-disabled-bg: var(--wc-primary);
  --bs-btn-disabled-border-color: var(--wc-primary);
  box-shadow: 0 2px 6px rgba(var(--wc-primary-rgb), .28);
}
.btn-primary:hover { box-shadow: 0 4px 12px rgba(var(--wc-primary-rgb), .35); }
.btn-outline-primary {
  --bs-btn-color: var(--wc-primary);
  --bs-btn-border-color: var(--wc-primary);
  --bs-btn-hover-bg: var(--wc-primary);
  --bs-btn-hover-border-color: var(--wc-primary);
  --bs-btn-active-bg: var(--wc-primary);
}
.btn-success {
  --bs-btn-bg: var(--wc-accent);
  --bs-btn-border-color: var(--wc-accent);
  --bs-btn-hover-bg: #1a7641;
  --bs-btn-hover-border-color: #1a7641;
}
.text-primary { color: var(--wc-primary) !important; }
.bg-primary { background-color: var(--wc-primary) !important; }
.text-success, .text-accent { color: var(--wc-accent) !important; }
a { color: var(--wc-primary); }
a:hover { color: var(--wc-primary-700); }

/* Vuexy soft "label" backgrounds */
.bg-label-primary { background-color: var(--wc-primary-050) !important; color: var(--wc-primary) !important; }
.bg-label-success { background-color: var(--wc-accent-050) !important; color: var(--wc-accent) !important; }

/* form controls / checks / switches */
.form-control:focus, .form-select:focus, .select2-container--focus .select2-selection {
  border-color: var(--wc-primary);
  box-shadow: 0 0 0 .15rem rgba(var(--wc-primary-rgb), .15);
}
.form-check-input:checked { background-color: var(--wc-primary); border-color: var(--wc-primary); }
.form-check-input:focus { border-color: var(--wc-primary); box-shadow: 0 0 0 .15rem rgba(var(--wc-primary-rgb), .15); }

/* pagination (Bootstrap + DataTables) */
.page-item.active .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background-color: var(--wc-primary) !important;
  border-color: var(--wc-primary) !important;
  color: #fff !important;
}
.page-link, .dataTables_wrapper .paginate_button { color: var(--wc-primary); }

/* progress / spinners */
.progress-bar { background-color: var(--wc-primary); }
.text-primary.spinner-border, .spinner-border.text-primary { color: var(--wc-primary) !important; }

/* ===================== Surfaces & components ===================== */
.light-style .card {
  border: 1px solid var(--wc-border);
  border-radius: var(--wc-radius);
  box-shadow: var(--wc-shadow);
}
.card-header { font-weight: 600; padding: 1.1rem 1.25rem .75rem; border-bottom: 0; }
.card-body { padding: 1.25rem; }
.card-header + .card-body { padding-top: .25rem; }
.card .card-title { letter-spacing: -0.01em; }

/* buttons: a touch rounder + medium weight + comfortable focus */
.btn { border-radius: var(--wc-radius-sm); font-weight: 500; }
.btn:focus-visible { outline: 2px solid rgba(var(--wc-primary-rgb), .4); outline-offset: 2px; }
.btn-sm { border-radius: .4rem; }

/* inputs */
.form-control, .form-select { border-radius: var(--wc-radius-sm); border-color: var(--wc-border); }
.light-style .form-control, .light-style .form-select { background-color: var(--wc-surface); }
.input-group-text { border-radius: var(--wc-radius-sm); }
.form-label { font-weight: 500; margin-bottom: .35rem; color: var(--wc-text); }

/* badges → pill, accessible weight */
.badge { border-radius: var(--wc-radius-pill); font-weight: 600; letter-spacing: .01em; padding: .35em .7em; }

/* tables: clearer header, soft rows, hover */
.light-style .table { --bs-table-bg: transparent; color: var(--wc-text); }
.light-style .table > thead th,
.light-style table.dataTable > thead th {
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .04em;
  font-weight: 600;
  color: var(--wc-muted);
  border-bottom: 1px solid var(--wc-border);
  background: var(--wc-surface-2);
}
.light-style .table > tbody tr { border-color: var(--wc-border); }
.light-style .table-hover > tbody > tr:hover > * { background-color: var(--wc-primary-050); }
.light-style table.dataTable td, .light-style table.dataTable th { border-color: var(--wc-border); }

/* DataTables controls */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select { border-radius: var(--wc-radius-sm); border:1px solid var(--wc-border); }
.dataTables_wrapper .dataTables_filter input { min-width: 240px; }
@media (min-width: 768px) { .dataTables_wrapper .dataTables_filter input { min-width: 300px; } }
/* Search & length selalu rata-kiri (konsisten semua tabel; hindari kotak "di tengah").
   !important krn CSS DataTables vendor ter-load setelah file ini & memaksa rata-kanan. */
.dataTables_wrapper .dataTables_filter { text-align: left !important; }
.dataTables_wrapper .dataTables_filter label { margin-bottom: 0; font-weight: 500; }
.dataTables_wrapper .dataTables_length { text-align: left !important; }
.dt-buttons .btn { box-shadow: none; }

/* kolom teks panjang -> wrap (bukan nowrap) supaya tabel muat 1 layar */
.table td.wrap-col, .table th.wrap-col,
table.dataTable td.wrap-col, table.dataTable th.wrap-col {
  white-space: normal !important;
  min-width: 150px;
  max-width: 300px;
  vertical-align: middle;
}
table.dataTable td.wrap-col .badge { white-space: normal; text-align: left; }

/* SweetAlert2 toast — kompak & konsisten (font tidak kebesaran) */
.swal2-toast { width: auto !important; max-width: 380px !important; padding: .7rem .9rem !important;
  box-shadow: var(--wc-shadow-lg) !important; border: 1px solid var(--wc-border) !important; border-radius: var(--wc-radius) !important; }
.swal2-toast .swal2-title { font-size: .9rem !important; font-weight: 500 !important; line-height: 1.35 !important; margin: 0 !important; text-align: left !important; color: var(--wc-text) !important; }
.swal2-toast .swal2-icon { margin: 0 .5rem 0 0 !important; }
.swal2-toast .swal2-timer-progress-bar { background: rgba(var(--wc-primary-rgb), .4); }

/* DataTables "processing" → kartu spinner rapi di tengah tabel (override vendor, global) */
.dataTables_wrapper .dataTables_processing {
  position: absolute !important;
  top: 50% !important; left: 50% !important; right: auto !important; bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  width: auto !important; min-width: 0 !important; height: auto !important; margin: 0 !important;
  padding: .7rem 1.1rem !important;
  background: var(--wc-surface) !important;
  border: 1px solid var(--wc-border) !important;
  border-radius: var(--wc-radius) !important;
  box-shadow: var(--wc-shadow-lg) !important;
  font-size: 0 !important; line-height: 1 !important; white-space: nowrap;
  z-index: 40 !important;
  text-align: center !important;
  /* JANGAN set display !important di sini — DataTables pakai display none/block utk show/hide */
}
/* sembunyikan teks & animasi bawaan (3 titik/gradient), ganti dgn spinner sendiri */
.dataTables_wrapper .dataTables_processing > * { display: none !important; }
.dataTables_wrapper .dataTables_processing::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 1.05rem; height: 1.05rem;
  border: 2.5px solid rgba(var(--wc-primary-rgb), .25);
  border-top-color: var(--wc-primary); border-radius: 50%;
  animation: wc-spin .6s linear infinite;
}
.dataTables_wrapper .dataTables_processing::after {
  content: "Memuat…"; display: inline-block; vertical-align: middle; margin-left: .55rem;
  font-size: .85rem; font-weight: 500; color: var(--wc-text);
}
@keyframes wc-spin { to { transform: rotate(360deg); } }
.dark-style .dataTables_wrapper .dataTables_processing { background: #2b2c40 !important; border-color: rgba(255,255,255,.08) !important; }
.dark-style .dataTables_wrapper .dataTables_processing::after { color: #cfd3ec; }

/* modals */
.modal-content { border: 0; border-radius: var(--wc-radius); box-shadow: var(--wc-shadow-lg); }
.modal-header { padding: 1.1rem 1.25rem; }
.modal-backdrop.show { opacity: .5; }

/* offcanvas (filter drawers) */
.offcanvas { border: 0; }
.light-style .offcanvas { box-shadow: var(--wc-shadow-lg); }

/* dropdowns */
.dropdown-menu { border: 1px solid var(--wc-border); border-radius: var(--wc-radius); box-shadow: var(--wc-shadow-lg); }
.dropdown-item:active, .dropdown-item.active { background-color: var(--wc-primary); }

/* ===================== Sidebar (vertical menu) ===================== */
.light-style .menu .menu-item.active > .menu-link {
  background: linear-gradient(90deg, rgba(var(--wc-primary-rgb), .12), rgba(var(--wc-primary-rgb), .04));
  color: var(--wc-primary);
  font-weight: 600;
  box-shadow: none;
}
.light-style .menu-inner > .menu-item.active > .menu-link { color: var(--wc-primary); }
.menu-link { border-radius: var(--wc-radius-sm); }
.light-style .bg-menu-theme { background-color: var(--wc-surface); border-right: 1px solid var(--wc-border); }
.app-brand .app-brand-text { font-weight: 700; letter-spacing: -0.01em; }

/* ===================== Navbar ===================== */
.light-style .layout-navbar {
  box-shadow: none;
  border-bottom: 1px solid var(--wc-border);
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(160%) blur(8px);
}

/* ===================== Scrollbar ===================== */
* { scrollbar-width: thin; scrollbar-color: #c7cfdb transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: #c7cfdb; border-radius: 50rem; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: #aab4c4; background-clip: content-box; }

/* ===================== Dark mode parity (brand only) ===================== */
.dark-style { --bs-primary: var(--wc-primary); --bs-primary-rgb: var(--wc-primary-rgb); }
.dark-style .menu .menu-item.active > .menu-link { color: #cfe2f5; background: rgba(var(--wc-primary-rgb), .22); }
.dark-style .bg-label-primary { background-color: rgba(var(--wc-primary-rgb), .2) !important; color: #9ec5ec !important; }

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ===================== Soft label buttons & contextual tables ===================== */
.btn-label-primary { color: var(--wc-primary); background-color: var(--wc-primary-050); border-color: transparent; }
.btn-label-primary:hover, .btn-label-primary:focus { color: #fff; background-color: var(--wc-primary); box-shadow: 0 2px 6px rgba(var(--wc-primary-rgb), .28); }
.btn-label-success { color: var(--wc-accent); background-color: var(--wc-accent-050); border-color: transparent; }
.btn-label-success:hover { color: #fff; background-color: var(--wc-accent); }
.table-primary { --bs-table-bg: var(--wc-primary-050); --bs-table-color: var(--wc-primary); --bs-table-border-color: var(--wc-border); }

/* ===================== Dashboard stat cards ===================== */
.card[class*="card-border-shadow-"] { border-radius: var(--wc-radius); transition: transform .2s ease, box-shadow .2s ease; }
.card[class*="card-border-shadow-"]:hover { transform: translateY(-3px); box-shadow: var(--wc-shadow-lg); }
.card[class*="card-border-shadow-"] .card-body h4 { font-size: 1.85rem; font-weight: 700; letter-spacing: -0.02em; }

/* =====================================================================
   LOGIN  (.wc-auth)  — modern institutional split layout.
   Styles a redesigned login.blade.php; form internals (#formAuthentication,
   #username, #password, password-toggle) are preserved for JS/validation.
   ===================================================================== */
.wc-auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1.05fr .95fr; }
.wc-auth__brand {
  position: relative; overflow: hidden; color: #eaf2fb;
  --bs-heading-color: #ffffff;   /* headings inside brand panel must be light */
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(31,138,76,.35), transparent 55%),
    linear-gradient(160deg, #123f6b 0%, #1b5e9c 60%, #1a6fae 100%);
  display: flex; flex-direction: column; justify-content: center; gap: 1.25rem; padding: 3rem 3.25rem;
}
.wc-auth__brand::after {
  content: ""; position: absolute; inset: 0; opacity: .10; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1.4px);
  background-size: 22px 22px;
}
.wc-auth__brand > * { position: relative; z-index: 1; }
.wc-auth__logo { height: 44px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.wc-auth__brand .wc-auth__headline { font-size: clamp(1.6rem, 2.2vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .75rem; color: #ffffff; }
.wc-auth__sub { font-size: 1.02rem; line-height: 1.6; color: #cfe0f2; max-width: 42ch; }
.wc-auth__meta { position: absolute; left: 3.25rem; bottom: 2rem; font-size: .85rem; color: #aac6e3; }
.wc-auth__chip { display:inline-flex; align-items:center; gap:.5rem; background: rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.18); border-radius:50rem; padding:.4rem .9rem; font-size:.82rem; backdrop-filter: blur(4px); }

.wc-auth__panel { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; background: var(--wc-surface); }
.wc-auth__card { width: 100%; max-width: 400px; }
.wc-auth__card .app-logo { height: 64px; margin-bottom: 1.25rem; }
.wc-auth__title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: .25rem; color: var(--wc-text); }
.wc-auth__hint { color: var(--wc-muted); margin-bottom: 1.75rem; }
.wc-auth .form-control { padding: .65rem .85rem; }
.wc-auth .btn-primary { padding: .7rem; font-size: 1rem; }
.wc-auth__footer { margin-top: 2rem; font-size: .82rem; color: var(--wc-muted); text-align: center; }

@media (max-width: 991.98px) {
  .wc-auth { grid-template-columns: 1fr; }
  .wc-auth__brand { position: relative; padding: 1.5rem 1.5rem; min-height: auto; justify-content: center; gap: .5rem; }
  .wc-auth__brand .wc-auth__chip,
  .wc-auth__brand .wc-auth__sub,
  .wc-auth__brand .wc-auth__meta { display: none; }
  .wc-auth__brand .wc-auth__headline { font-size: 1.2rem; margin: 0; }
  .wc-auth__panel { padding: 2rem 1.25rem; }
}
@media (max-width: 575.98px) {
  .wc-auth__panel { padding: 1.5rem 1rem; }
  .wc-auth__card .app-logo { height: 52px; }
}
