/* ========================
   GLOBAL BACKGROUND
======================== */
body {
  background-image: url('https://mariterbang.io/download/NiTCMQJL.jpg');
  background-size: 100vw 100vh;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  min-height: 100vh;
  font-family: Arial, sans-serif;
}

/* ========================
   MENU / NAVBAR
======================== */
.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 18px 0;
  background: rgba(10, 10, 30, 0.75);
  backdrop-filter: blur(15px);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu ul li {
  margin: 0 20px;
}

.nav-link.shadow-box {
  text-decoration: none;
  color: rgb(27, 0, 255);
  text-shadow: 0 0 6px rgba(0,0,255,0.7);
  background: rgba(20,20,40,0.55);
  border-radius: clamp(5px, 1vw, 14px);
  padding: clamp(6px, 1vw, 12px) clamp(12px, 2vw, 22px);
  font-size: clamp(10px, 1.4vw, 18px);
  box-shadow: 0px 0px 12px rgba(0,0,255,0.35);
  transition: 0.25s ease-in-out;
}

.nav-link.shadow-box:hover {
  transform: scale(1.08);
  background: rgba(40,40,80,0.8);
  color: #fff;
  text-shadow: 0 0 10px #fff;
  box-shadow: 0px 0px 22px rgba(0,80,255,0.75);
}

/* ========================
   CONTENT WRAPPER
======================== */
.schedule-container {
  margin-top: 130px;
  padding: 20px;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(3px);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* ========================
   HEADER TITLE
======================== */
.header-title {
  margin: 0 auto 20px;
  padding: 14px 28px;
  width: fit-content;
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  border-radius: 12px;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  text-shadow: 2px 2px 5px rgba(255,255,255,0.6);
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}

/* ========================
   GRID / AULA
======================== */
.seat-layout {
  position: relative;
  width: 100%;
  height: 540px;
  margin-top: 20px;
  border-radius: 20px;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.08) 0, rgba(255,255,255,0.08) 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0, rgba(255,255,255,0.08) 1px, transparent 1px, transparent 80px),
    rgba(0,0,0,0.35);
  box-shadow: inset 0 0 25px #00ffff;
}

/* ========================
   SEAT BOX
======================== */
.seat {
  position: absolute;
  width: 65px;
  height: 130px;
  padding: 8px;
  border-radius: 16px;
  box-shadow: 0 6px 14px rgba(0,0,0,.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: grab;
  transition: .15s;
  user-select: none;
}

.seat:hover {
  transform: scale(1.07);
  box-shadow: 0 10px 20px rgba(0,0,0,.6);
}

.seat:active {
  cursor: grabbing;
}

/* ========================
   INPUT NAMA (di bawah select)
======================== */
.nama-input {
  width: 100%;
  padding: 6px 5px;
  font-size: 11px;
  text-align: center;
  border-radius: 8px;
  border: none;
  margin-top: 6px;
  font-weight: bold;
  background: rgba(255,255,255,0.9);
  box-sizing: border-box;
  z-index: 5;
}

/* disabled look */
.nama-input:disabled {
  opacity: 0.7;
  background: rgba(255,255,255,0.7);
}

/* ========================
   ICON
======================== */
.seat-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 6px;
  pointer-events: none;
}

/* ========================
   JABATAN SELECT
======================== */
.jabatan-select {
  width: 100%;
  font-size: 11px;
  font-weight: bold;
  padding: 6px;
  border-radius: 8px;
  border: none;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}

.jabatan-select:disabled {
  background: rgb(217 255 8);
  color: #000;
}

/* ========================
   DELETE BUTTON
======================== */
.btn-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: #ff3b3b;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.btn-delete:hover {
  background: #ff0000;
  transform: scale(1.1);
}

/* ========================
   WARNA ROLE
======================== */
.seat[data-jabatan="LEADER"] { background: linear-gradient(135deg,#ffd700,#ff8c00); }
.seat[data-jabatan="SPV DEPO"] { background: linear-gradient(135deg,#00c6ff,#0072ff); }
.seat[data-jabatan="SPV WD"] { background: linear-gradient(135deg,#ff416c,#ff4b2b); }
.seat[data-jabatan="DEPO"] { background: linear-gradient(135deg,#38ef7d,#11998e); }
.seat[data-jabatan="WD BANK"] { background: linear-gradient(135deg,#f7971e,#ffd200); }
.seat[data-jabatan="WD EWALLET"] { background: linear-gradient(135deg,#8e2de2,#4a00e0); }
.seat[data-jabatan=""] { background: rgba(255,255,255,0.25); }

/* ========================
   ADMIN TOOLS PANEL
======================== */
.admin-tools {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1200;
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-tools button {
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  background: linear-gradient(135deg,#00eaff,#0077ff);
  color: #000;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
  transition: .15s;
}

.admin-tools button:hover { transform: scale(1.05); }

/* small screens */
@media (max-width: 600px) {
  .seat { width: 64px; height: 110px; }
  .seat-icon { width: 36px; height: 36px; }
  .nama-input { font-size: 10px; padding: 5px; }
  .admin-tools { right: 10px; bottom: 10px; gap: 6px; }
}

.seat-card {
    padding-top: 25px; /* Ubah angka ini untuk menurunkan semuanya */
}

.seat-icon {
    margin-top: 10px; /* Tambahkan jarak ikon ke bawah */
}

.nama-input {
    margin-top: 10px; /* Nama ikut turun */
}

.jabatan-select {
    margin-top: 10px; /* Dropdown ikut turun juga */
}

/* SEMBUNYIKAN PANAH DROPDOWN DI HALAMAN USER */
body:not(.admin) .jabatan-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none !important;
}
