:root{
  /* PREMIUM DARK PURPLE THEME */
  --bg:#0b0613;
  --card: rgba(255,255,255,.06);
  --text:#f3eaff;
  --muted: rgba(255,255,255,.70);
  --accent:#b86bff;
  --accent2:#ff6ec7;

  --line: rgba(255,255,255,.10);
  --shadow: 0 14px 40px rgba(0,0,0,.35);
  --shadow-2: 0 10px 26px rgba(0,0,0,.28);
  --radius:16px;
}

*{ box-sizing:border-box; }

html, body{ overflow-x:hidden; }

body{
  margin:0;
  min-height:100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);

  /* Premium: atas gelap, bawah ungu-pink */
  background:
    radial-gradient(1400px 800px at 50% 120%, rgba(255,110,199,.28), transparent 70%),
    radial-gradient(1200px 700px at 20% -20%, rgba(184,107,255,.20), transparent 70%),
    radial-gradient(900px 600px at 95% 10%, rgba(255,110,199,.14), transparent 65%),
    linear-gradient(180deg,
      #07040e 0%,
      #0d0618 20%,
      #140a24 40%,
      #1f0f36 60%,
      #32124f 78%,
      #4b176a 90%,
      #7a1f6f 100%
    );
}

/* =========================
   LAYOUT
   ========================= */
.container{
  max-width:1100px;
  margin:0 auto;
  padding:16px;
  display:grid;
  grid-template-columns:1.6fr .9fr;
  gap:14px;
  align-items:start;
  animation: fadeIn .35s ease both;
}

@media (max-width: 980px){
  .container{ grid-template-columns:1fr; }
}

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.card-header{
  padding:14px 14px 0;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.card-title{ margin:0; font-size:14px; letter-spacing:.2px; font-weight:900; }
.card-subtitle{ margin:6px 0 0; font-size:12px; color:var(--muted); line-height:1.4; }
.card-body{ padding:14px; }

.panel{ position: sticky; top:16px; }
@media (max-width: 980px){ .panel{ position: static; } }

/* =========================
   UI COMPONENTS
   ========================= */
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color:var(--muted);
  font-size:12px;
  backdrop-filter: blur(12px);
}

.item{
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
  animation: pop .22s ease both;
}

.hint{
  font-size:12px;
  color:var(--muted);
  margin-top:8px;
  line-height:1.35;
}

.tag{
  font-size:12px;
  font-weight:900;
  color: rgba(255,255,255,.90);
  background: rgba(184,107,255,.18);
  border:1px solid rgba(184,107,255,.28);
  padding:6px 10px;
  border-radius:999px;
}

/* =========================
   FORM
   ========================= */
.form{ display:flex; flex-direction:column; gap:10px; margin-top:10px; }
.grid2{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
@media (max-width: 520px){ .grid2{ grid-template-columns:1fr; } }

label{
  font-size:12px;
  color:var(--muted);
  font-weight:700;
  margin:0 0 6px;
  display:block;
}

.field{
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 12px;
  background: rgba(255,255,255,.06);
  outline:none;
  width:100%;
  color: var(--text);
}

.field:focus{
  border-color: rgba(184,107,255,.45);
  box-shadow: 0 0 0 4px rgba(184,107,255,.18);
  background: rgba(255,255,255,.08);
}

textarea.field{ min-height:90px; resize:vertical; }

.field.locked{
  background: rgba(255,255,255,.05) !important;
  color: rgba(255,255,255,.55) !important;
  cursor:not-allowed;
}

/* =========================
   BUTTONS / NAV
   ========================= */
.btn,
.nav a,
a.nav{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border:0;
  cursor:pointer;

  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:#fff;

  padding: 8px 14px;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 900;

  box-shadow: var(--shadow-2);
  transition: transform .15s ease, opacity .15s ease;
}

.btn:hover,
.nav a:hover,
a.nav:hover{
  transform: translateY(-1px);
}

.btn.secondary{
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  border:1px solid var(--line);
  box-shadow: 0 10px 22px rgba(0,0,0,.20);
}

.btn:disabled{ opacity:.6; cursor:not-allowed; }

.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

/* =========================
   VEHICLES LIST + ACCORDION
   ========================= */
.list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.vehicleCard.acc{
  display:block; /* penting: jangan flex di wrapper */
}

/* header row */
.vehicleCard.acc .accHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

/* kiri */
.vehicleCard.acc .vehicleLeft{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

/* thumbnail */
.thumb{
  width:74px;height:54px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  overflow:hidden;
  flex: 0 0 auto;
  display:grid;
  place-items:center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* meta */
.vehMeta{ min-width:0; }
.plate{
  margin:0;
  font-size: 13px;
  font-weight: 900;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.vehSub{
  margin:4px 0 0;
  font-size: 12px;
  color: var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.vehSub a{
  color: rgba(255,255,255,.90);
  text-decoration:none;
  font-weight:900;
}
.vehSub a:hover{ text-decoration:underline; }

/* kanan */
.vehicleCard.acc .rightBox{
  display:flex;
  align-items:center;
  gap:10px;
  flex: 0 0 auto;
}

/* actions */
.actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

/* toggle arrow */
.vehicleCard.acc .accToggle{
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  cursor:pointer;
  display:grid;
  place-items:center;
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
  transition: transform .12s ease;
  color: rgba(255,255,255,.90);
}
.vehicleCard.acc .accToggle:hover{ transform: translateY(-1px); }

.vehicleCard.acc .chev{
  font-size:16px;
  line-height:1;
  transition: transform .18s ease;
}

/* accordion body */
.vehicleCard.acc .accBody{
  display:none;
  margin-top:10px;
  padding-top:10px;
  border-top:1px dashed rgba(255,255,255,0.12);
}
.vehicleCard.acc.is-open .accBody{ display:block; }
.vehicleCard.acc.is-open .chev{ transform: rotate(180deg); }

/* price pills */
.priceRow{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.miniPill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.82);
  font-size: 12px;
  backdrop-filter: blur(10px);
}
.miniPill b{ color:#fff; }

/* MOBILE */
@media (max-width: 560px){
  .vehicleCard.acc .accHead{
    align-items:flex-start;
    flex-direction:column;
  }
  .vehicleCard.acc .rightBox{
    width:100%;
    justify-content:space-between;
  }
  .actions{ justify-content:flex-start; }
}

/* =========================
   TOAST + MODAL + TABLE
   ========================= */
.toast{
  position:fixed;
  left:50%;
  bottom:18px;
  transform: translateX(-50%);
  background: rgba(0,0,0,.75);
  color:#fff;
  padding:12px 14px;
  border-radius:14px;
  box-shadow: var(--shadow);
  max-width: min(680px, calc(100vw - 24px));
  opacity:0;
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
  z-index:80;
  font-size:13px;
  white-space:pre-line;
}
.toast.show{
  opacity:1;
  transform: translateX(-50%) translateY(-4px);
}

@keyframes fadeIn{ from{opacity:0} to{opacity:1} }
@keyframes pop{ from{ transform: translateY(6px); opacity:.6 } to{ transform: translateY(0); opacity:1 } }



/*dsadsadsadasdasdas*/
/* =========================
   DARK THEME FIX - KALENDAR
   ========================= */

/* 1) Biar tulisan di card header atas (Garasi / Plat / Type) terlihat */
.garageSub{
  color: rgba(255,255,255,.82) !important;
}
.garageSub .miniPill{
  color: rgba(255,255,255,.85) !important;
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
}
.garageSub .miniPill b{
  color: rgba(255,255,255,.95) !important;
}

/* avatar biar masuk dark */
.avatar{
  color: rgba(255,255,255,.92) !important;
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
}

/* 2) KALENDAR: bikin "warna putih" (seperti mode light) */
#calendarWrap,
#calendarWrap .card-body{
  background:#fff !important;
}

/* teks umum FullCalendar */
.fc{
  color:#0b1b2b !important;
}

/* nama hari (Min Sen Sel ...) */
.fc .fc-col-header-cell-cushion{
  color:#0b1b2b !important;
  font-weight:900 !important;
}

/* angka tanggal */
.fc .fc-daygrid-day-number{
  color:#0b1b2b !important;
  font-weight:800 !important;
}

/* garis grid */
.fc .fc-scrollgrid,
.fc .fc-scrollgrid td,
.fc .fc-scrollgrid th{
  border-color:#e6f0ff !important;
}

/* hari ini jangan hijau/aneh, tetap clean */
.fc .fc-daygrid-day.fc-day-today{
  background: rgba(47,126,247,.08) !important;
}

/* 3) Tanggal terpilih: kasih highlight yang jelas */
.fc .fc-daygrid-day.selected-day .fc-daygrid-day-frame{
  background: rgba(47,126,247,.10) !important;
  outline: 3px solid rgba(47,126,247,.60) !important;
  outline-offset:-3px;
  border-radius:10px;
}
.fc .fc-daygrid-day.selected-day .fc-daygrid-day-number{
  color:#0b3a77 !important;
  font-weight:900 !important;
}

/* event tetap terbaca di kalender putih */
.fc .fc-daygrid-event{
  color:#fff !important;
}

/* 4) Hilangkan tulisan "today" (button today) */
.fc .fc-today-button{
  display:none !important;
}



.card.panel .item{
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;

  background: rgba(255,255,255,.14);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  box-shadow:
    0 10px 30px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.25);
}

/* teks di dalam item biar kebaca di dark */
.card.panel .item .kv,
.card.panel .item .pill,
.card.panel .item .tag{
  color: rgba(255,255,255,.92);
}
.card.panel .item .kv b{
  color: rgba(255,255,255,.96);
}
.card.panel .item .tag{
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.16);
}

/* =========================
   FIX MODAL (Kalendar: Lihat Tabel)
   ========================= */

/* overlay harus nutup layar + center */
#modal.modal{
  position: fixed !important;
  inset: 0 !important;
  display: none;
  place-items: center;
  padding: 16px;
  background: rgba(0,0,0,.55);
  z-index: 9999 !important;
}

/* ketika show */
#modal.modal.show{
  display: grid !important;
}

/* card modal */
#modal .modal-card{
  width: min(920px, 100%);
  max-height: min(78vh, 720px);
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(20,12,35,.92);          /* dark glass */
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
}

/* header modal */
#modal .modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
}

#modal .modal-head b{ color: rgba(255,255,255,.95); }

/* tombol X */
#modal .x{
  width:40px;height:40px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.9);
  cursor:pointer;
}

/* body bisa scroll */
#modal .modal-body{
  padding: 14px;
  overflow: auto;
  max-height: calc(min(78vh, 720px) - 64px);
}

/* table biar rapi di modal */
#modal .table{
  width:100%;
  border-collapse: collapse;
  font-size: 13px;
  color: rgba(255,255,255,.92);
}

#modal .table th, 
#modal .table td{
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  vertical-align: top;
  white-space: nowrap;
}

#modal .table th{
  color: rgba(255,255,255,.75);
  font-weight: 900;
  background: rgba(255,255,255,.06);
  position: sticky;
  top: 0;
  z-index: 2;
}

/* mobile: biar bisa geser kanan-kiri */
@media (max-width: 520px){
  #modal .modal-body{ overflow:auto; }
  #modal .table{ font-size:12px; }
}



















