/* =========================================================
   GLOBAL STYLE — WATER GLASS THEME | PAMSIMAS TIRTO REJO
   ========================================================= */

:root {
  --primary: #0b8edc;
  --primary-light: #d9f0ff;
  --accent: #00b7ff;
  --dark: #00324b;
  --bg: #f4fbff;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 18px rgba(0,0,0,0.08);
  font-family: "Poppins", sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--dark);
}

/* ----------------- NAVBAR ----------------- */

.nav {
  position: sticky;
  top: 0;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  z-index: 99;
}

.nav-inner {
  max-width: 1100px;
  margin: auto;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav .logo {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--primary);
}

.nav .menu a {
  margin: 0 10px;
  text-decoration: none;
  font-weight: 500;
  color: var(--dark);
  padding: 6px 10px;
  border-radius: 6px;
  transition: 0.25s;
}
.nav .menu a:hover {
  background: var(--primary-light);
}
.nav .menu .active {
  background: var(--primary);
  color: white;
}

/* ----------------- CONTAINER ----------------- */

.container {
  max-width: 1100px;
  margin: auto;
  padding: 16px;
}

/* ----------------- CARD / GLASS ----------------- */

.card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--glass-border);
  margin-bottom: 20px;
}

/* ----------------- BUTTON ----------------- */

.btn {
  background: white;
  border-radius: 8px;
  border: 1px solid #dceaf5;
  padding: 9px 14px;
  cursor: pointer;
  transition: 0.25s;
}

.btn:hover {
  background: var(--primary-light);
}

.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
}
.btn-primary:hover {
  background: var(--accent);
}

.danger {
  background: #ff5b5b;
  color: white;
}

/* ----------------- TABLE ----------------- */

table {
  width: 100%;
  border-collapse: collapse;
}
thead {
  background: var(--primary-light);
}
td, th {
  padding: 10px;
  border-bottom: 1px solid #dceaf5;
}
th {
  font-weight: 600;
}

/* ----------------- BADGE ----------------- */

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--primary);
  color: white;
}

/* ----------------- GRID ----------------- */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media(max-width:700px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ----------------- MODAL ----------------- */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
  z-index: 100;
}

.modal-box {
  background: white;
  padding: 18px;
  border-radius: 12px;
  width: 380px;
  max-width: 92%;
  box-shadow: var(--shadow);
}

.hidden {
  display: none;
}
.fade {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.6s ease;
}
.fade-show {
  opacity: 1;
  transform: none;
}
