/* ========== RESET ========== */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(120deg, #fce4ec, #e3f2fd);
  margin: 0;
  padding: 0;
  color: #333;
}

/* ========== SIDEBAR ========== */
.sidebar {
  width: 230px;
  height: 100vh;
  background: #1e272e;
  position: fixed;
  top: 0;
  left: 0;
  padding: 20px 0;
  text-align: center;
}

.sidebar .logo {
  width: 80px;
  margin-bottom: 10px;
  border-radius: 50%;
}

.sidebar h2 {
  color: white;
  margin-bottom: 20px;
  font-size: 20px;
}

.sidebar a {
  display: block;
  color: white;
  padding: 12px;
  text-decoration: none;
  transition: 0.3s;
  border-radius: 10px;
  font-weight: 500;
}

.sidebar a:hover {
  background: #485460;
}

/* Sidebar link aktif */
.sidebar a.active {
  background: #485460;
}

/* ========== CONTENT ========== */
.content {
  margin-left: 250px;
  padding: 20px;
}

/* ========== HERO / HOME ========== */
.hero {
  position: relative;
  max-width: 1100px;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.25);
  animation: floatHero 4s ease-in-out infinite;
}

.hero img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  filter: brightness(0.7);
  transition: 0.5s ease;
}

.hero:hover img {
  transform: scale(1.05);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 30px 50px;
  border-radius: 25px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 35px rgba(0,0,0,0.4);
}

.hero-text h1 {
  font-size: 34px;
  margin: 0;
  background: linear-gradient(135deg, #f48fb1, #90caf9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  margin-top: 12px;
  font-size: 16px;
  color: #f1f1f1;
}

/* ========== CONTAINER & CARD ========== */
.container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
  animation: fadeSlide 0.8s ease;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  margin-bottom: 30px;
  transition: 0.3s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(244,143,177,0.3), rgba(144,202,249,0.3));
  opacity: 0;
  transition: 0.4s;
  z-index: -1;
}

.card:hover::after {
  opacity: 1;
  filter: blur(20px);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* ========== FORM ========== */
form {
  background: white;
  max-width: 500px;
  margin: 30px auto;
  padding: 25px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

input, button {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
}

button {
  background: linear-gradient(135deg, #ec407a, #42a5f5);
  color: white;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

/* ========== TABEL ========== */
table {
  width: 90%;
  margin: 30px auto;
  border-collapse: collapse;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

th {
  background: linear-gradient(135deg, #ec407a, #42a5f5);
  color: white;
}

th, td {
  padding: 14px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

tr:hover {
  background: #f5f7fa;
}

.no-badge {
  display: inline-block;
  min-width: 32px;
  height: 32px;
  line-height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f48fb1, #90caf9);
  color: white;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ========== TOMBOL KEMBALI ========== */
.btn-kembali {
  display: inline-block;
  margin: 10px auto;
  padding: 10px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #90caf9, #f48fb1);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-kembali::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent);
  transition: 0.5s;
}

.btn-kembali:hover::after {
  left: 100%;
}

/* ========== LINK ========== */
a {
  color: #ec407a;
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

/* ========== FOOTER ========== */
footer {
  margin-top: 60px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  text-align: center;
  padding: 18px;
  border-radius: 25px 25px 0 0;
  box-shadow: 0 -8px 20px rgba(0,0,0,0.15);
}

footer p {
  margin: 0;
  font-size: 14px;
  background: linear-gradient(135deg, #ec407a, #42a5f5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

/* ========== ANIMASI ========== */
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatHero {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@keyframes zoomIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
/* ========== SIDEBAR ========== */
.sidebar {
  width: 230px;
  height: 100vh;
  background: #1e272e;
  position: fixed;
  top: 0;
  left: 0;
  padding: 20px 0;
  text-align: center;
}

.sidebar .logo {
  width: 80px;
  margin-bottom: 10px;
  border-radius: 50%;
}

.sidebar h2 {
  color: white;
  margin-bottom: 20px;
  font-size: 20px;
}

.sidebar a {
  display: block;
  color: white;
  padding: 12px;
  text-decoration: none;
  transition: 0.3s;
  border-radius: 10px;
  font-weight: 500;
}

.sidebar a:hover {
  background: #485460;
}
.submenu {
  display: none;
  padding-left: 15px;
}

.sidebar a:hover + .submenu,
.submenu:hover {
  display: block;
}

.submenu a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  background: #2f3d4a;
  border-radius: 8px;
}
form {
  display: block;  /* harus ada */
}
/* ========== TABEL MODERN ========== */
.tabel-modern {
  width: 90%;
  margin: 30px auto;
  border-collapse: collapse;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.tabel-modern th {
  background: linear-gradient(135deg, #ec407a, #42a5f5);
  color: white;
  font-weight: 600;
  font-size: 14px;
  padding: 12px;
}

.tabel-modern th, .tabel-modern td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.tabel-modern tr:hover {
  background: #f5f7fa;
  transition: 0.2s;
}

/* ========== NOMOR URUT RAPI ========== */
td.nomor {
  font-weight: bold;
  color: white;
  background: linear-gradient(135deg, #f48fb1, #90caf9);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  line-height: 15px;
  text-align: center;
  margin: 0 auto;
  display: block;
 vertical-align: middle;
  /* naik sedikit biar kelihatan modern */
  position: relative;
   font-weight: bold;
     padding-top: 10px;       /* naik dikit dari atas */
  padding-bottom:20px;  
  top: 3px;
}


/* ========== TOMBOL KEMBALI & TAMBAH ========== */
.btn-kembali {
  display: inline-block;
  margin: 10px 5px;
  padding: 10px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #90caf9, #f48fb1);
  color: white;
  text-align: center;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.btn-kembali:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

/* ========== LINK HAPUS ========== */
a {
  color: #ec407a;
  font-weight: 500;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: #42a5f5;
}
/* ===============================
   OVERRIDE WARNA SAJA
   SOFT PINK + BIRU
   =============================== */

/* Sidebar */
.sidebar {
  background: linear-gradient(180deg, #f8bbd0, #bbdefb) !important;
}

.sidebar a:hover,
.sidebar a.active {
  background: rgba(255, 255, 255, 0.25) !important;
}

/* Header tabel */
th,
.tabel-modern th {
  background: linear-gradient(135deg, #f8bbd0, #bbdefb) !important;
}

/* Tombol */
button,
.btn-kembali {
  background: linear-gradient(135deg, #f8bbd0, #bbdefb) !important;
}

/* Hero text */
.hero-text h1,
footer p {
  background: linear-gradient(135deg, #f8bbd0, #bbdefb) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Link hover */
a:hover {
  color: #90caf9 !important;
}
