/* === RESET & DASAR === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(6,107,6,0.8));
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
  text-align: center; /* 🔹 semua isi otomatis rata tengah */
}

/* === WATERMARK === */
body::after {
  content: "RSUD Panembahan Senopati";
  position: absolute;
  bottom: 40px;
  right: 60px;
  font-size: 2rem;
  color: rgba(238, 243, 238, 0.05);
  font-weight: 700;
  pointer-events: none;
  user-select: none;
}

/* === HEADER / JUDUL === */
.center-container {
  text-align: center;
  padding: 40px 20px 10px;
}

.judul-halaman {
  text-align: center;
  padding: 25px 10px;
}

.judul-halaman img {
  width: 25vw;
  max-width: 320px;
  min-width: 140px;
  height: auto;
  margin-bottom: 12px;
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.25));
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.judul-halaman h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #198754;
  margin: 5px 0;
  letter-spacing: 1px;
}

.judul-halaman h5 {
  font-size: 1rem;
  color: #333;
  margin: 2px 0;
}

.judul-halaman h5:last-of-type {
  color: #198754;
  font-weight: 500;
}

/* === MENU GRID === */
.main-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  width: 90%;
  max-width: 1000px;
  margin: 40px auto;
  text-align: center;
}

.menu-badge {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  padding: 30px 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.menu-badge i {
  font-size: 2.5rem;
  color: #2e7d32;
  margin-bottom: 10px;
}

.menu-badge h5 {
  font-weight: 600;
  color: #064406;
}

.menu-badge p {
  font-size: 0.9rem;
  color: #666;
}

.menu-badge:hover {
  transform: translateY(-6px);
  background: linear-gradient(135deg, #43a047, #81c784);
  color: white;
}

.menu-badge:hover i,
.menu-badge:hover h5,
.menu-badge:hover p {
  color: white;
}

/* === CARD STYLE (halaman dalam) === */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  background: #fff;
}

.card:hover {
  transform: scale(1.02);
}

/* === STATUS BADGE === */
.badge-status {
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 10px;
  color: #fff;
}
.badge-aktif { background: #4caf50; }
.badge-selesai { background: #2196f3; }
.badge-arsip { background: #9e9e9e; }

/* === BUTTON DETAIL === */
.btn-detail {
  background: linear-gradient(135deg, #43a047, #66bb6a);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  transition: all .2s ease;
}
.btn-detail:hover {
  background: linear-gradient(135deg, #2e7d32, #81c784);
}

/* === FOOTER === */
footer {
  text-align: center;
  color: #ffffff;
  font-size: 0.9rem;
  padding: 30px 10px;
  margin-top: auto;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .judul-halaman {
    padding: 20px 10px;
  }
  .judul-halaman img {
    width: 50vw;
    max-width: 180px;
  }
  .judul-halaman h2 {
    font-size: 1.4rem;
  }
  .judul-halaman h5 {
    font-size: 0.9rem;
  }
  .main-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
  }
  .menu-badge {
    padding: 18px 10px;
  }
  .menu-badge i {
    font-size: 2rem;
  }
  body::after {
    font-size: 1rem;
    right: 10px;
    bottom: 10px;
  }
}
