/* ====================================================
   STYLE: Input Mandiri Form - BAZNAS Theme
   Font: Times New Roman
   Background: /simbada/assets/img/image_5.jpg
   ==================================================== */

:root {
  --green-main: #0b6623; /* Hijau khas BAZNAS */
  --green-dark: #074c1a;
  --green-light: #eaf4ec;
  --accent-yellow: #f9b233;
  --text-dark: #222;
}

/* === Base === */
body {
  font-family: 'Times New Roman', Times, serif;
  background: url('/simbada/assets/img/image_5.jpg') no-repeat center center fixed;
  background-size: cover;
  margin: 0;
  padding: 0;
  color: var(--text-dark);
  position: relative;
}

/* Overlay agar teks tetap terbaca di atas background gambar */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
}

.scroll-area {
  padding: 20px;
  display: flex;
  justify-content: center;
}

/* === Container === */
.form-container {
  background: rgba(255,255,255,0.85);
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  padding: 25px 30px;
  width: 100%;
  max-width: 1100px;
  border-top: 6px solid var(--green-main);
}

/* === Header === */
.dashboard-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.dashboard-header img {
  width: 90px;
  margin-right: 15px;
}

h2 {
  font-size: 1.8rem;
  color: var(--green-dark);
  margin: 0;
}

/* === Alert Error === */
.alert-error {
  background: #ffecec;
  color: #b30000;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  border-left: 4px solid red;
  font-family: 'Times New Roman', Times, serif;
}

/* === Pusatkan Logo dan Judul Halaman === */
.dashboard-header {
  text-align: center;              /* Menyusun konten ke tengah */
  display: flex;
  flex-direction: column;          /* Susun vertikal */
  align-items: center;             /* Posisikan secara horizontal tengah */
  justify-content: center;         /* Posisikan secara vertikal tengah */
  gap: 8px;                        /* Jarak antara logo dan judul */
  margin-bottom: 20px;             /* Jarak dari tabel/form di bawah */
}

.dashboard-header img {
  max-width: 100px;                /* Ukuran logo */
  height: auto;
}

.dashboard-header h2 {
  font-family: "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: bold;
  color: #007a33;                  /* Hijau BAZNAS */
  margin: 0;
}

table caption {
  caption-side: top;
  text-align: center;
  font-weight: bold;
  color: #007a33;
  font-size: 1.1rem;
  margin-bottom: 10px;
}


/* === Table & Form Elements === */
table {
  width: 100%;
  border-collapse: collapse;
}

td {
  padding: 8px 10px;
  vertical-align: middle;
  font-size: 1rem;
}

input[type="text"],
input[type="date"],
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #bbb;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Times New Roman', Times, serif;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[readonly] {
  background: #f3f3f3;
}

input:focus, select:focus {
  border-color: var(--green-main);
  box-shadow: 0 0 5px rgba(11,102,35,0.3);
  outline: none;
}

.form-buttons {
  margin-top: 25px;
}

/* Container tombol */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Base button */
.btn {
  display: block;
  width: 100%;
  padding: 16px 0;
  border-radius: 10px;
  font-size: 1.05rem;
  font-family: 'Times New Roman', serif;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  letter-spacing: 0.3px;
}

/* Tombol hijau utama */
.btn-green {
  background: linear-gradient(90deg, #009e73, #007b5e);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 123, 94, 0.3);
}

.btn-green:hover {
  background: linear-gradient(90deg, #00b485, #008e6a);
  transform: scale(1.02);
}

/* Tombol abu (reset) */
.btn-grey {
  background: linear-gradient(90deg, #666, #444);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.btn-grey:hover {
  background: linear-gradient(90deg, #777, #555);
  transform: scale(1.02);
}

/* Tombol disabled */
.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 600px) {
  .btn {
    font-size: 1rem;
    padding: 15px 0;
    border-radius: 8px;
  }
}

/* === Subtle Decorations === */
input, select {
  background: #fff;
}

input::placeholder {
  color: #888;
  font-style: italic;
}
