/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100%;
  font-family: Arial, sans-serif;
  background: #f3f6fb;
  overflow-x: hidden;
}

/* =========================
   PAGE WRAPPER
========================= */
.pelanggan-page {
  width: 100%;
  min-height: 100vh;
  background: #f3f6fb;
}

/* =========================
   HEADER
========================= */
.pelanggan-header {
  width: 100%;
  height: 155px;
  background: url('../img/banner-pdam.jpg') center center / cover no-repeat;
  border-bottom-left-radius: 26px;
  border-bottom-right-radius: 26px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 24px;
  overflow: hidden;
}

.header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(22, 144, 255, 0.82),
    rgba(0, 114, 236, 0.78)
  );
  backdrop-filter: blur(1px);
  z-index: 1;
}

.pelanggan-header h1 {
  position: relative;
  z-index: 2;
  color: white;
  font-size: 20px;
  font-weight: 700;
}

/* =========================
   BACK BUTTON
========================= */
.back-btn {
  position: absolute;
  top: 18px;
  left: 16px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 10px;
  background: white;
  color: #222;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  z-index: 2;
}

/* =========================
   CONTENT CARD
========================= */
.pelanggan-content {
  width: calc(100% - 24px);
  max-width: 420px;
  margin: 14px auto 0 auto;
  background: white;
  border-radius: 24px;
  padding: 20px 16px 30px;
  min-height: 500px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.05);
}

/* =========================
   MENU GRID TABS
========================= */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.menu-btn {
  border: none;
  background: #eef2f6;
  color: #4b5563;
  padding: 12px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.menu-btn.active {
  background: #2d8cf0;
  color: white;
  box-shadow: 0 4px 10px rgba(45, 140, 240, 0.3);
}

.section-content {
  display: none;
}
.section-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================
   FORM INPUT
========================= */
.input-group {
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1f2937;
}

.input-group input, .input-group textarea {
  width: 100%;
  border: 1px solid #dddddd;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  background: #fff;
  font-family: inherit;
}

.input-group input:focus, .input-group textarea:focus {
  border-color: #2d8cf0;
  box-shadow: 0 0 0 3px rgba(45, 140, 240, 0.12);
}

/* =========================
   BUTTON ACTIONS
========================= */
.action-btn {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 14px;
  background: #2d8cf0;
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 6px 14px rgba(45, 140, 240, 0.22);
  transition: 0.2s ease;
}

.action-btn:active {
  transform: scale(0.98);
}

.action-btn.btn-warning {
  background: #f59f00;
  box-shadow: 0 6px 14px rgba(245, 159, 0, 0.22);
}

.action-btn.btn-danger {
  background: #fa5252;
  box-shadow: 0 6px 14px rgba(250, 82, 82, 0.22);
}

/* =========================
   LIST VIEW
========================= */
.list-card {
  background: #f8fbff;
  border: 1px solid #dce9f9;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

.list-card h3 {
  font-size: 16px;
  color: #111827;
  margin-bottom: 6px;
}

.list-card p {
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 4px;
}

.note-badge {
  display: inline-block;
  background: #eef2f6;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  margin-top: 8px;
  color: #4b5563;
  font-style: italic;
  border-left: 3px solid #2d8cf0;
}

/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 480px) {
  .pelanggan-header {
    height: 145px;
    padding-top: 20px;
  }
  .pelanggan-header h1 {
    font-size: 18px;
  }
  .pelanggan-content {
    width: calc(100% - 14px);
    margin-top: 12px;
    padding: 18px 14px 28px;
  }
  .menu-btn {
    font-size: 12px;
    padding: 10px 8px;
  }
}
