/* =============================

   🌐 STYLE PORTAL HOTSPOT FINAL

   ============================= */



/* Reset dasar */

* {

  box-sizing: border-box;

  margin: 0;

  padding: 0;

  /* Menggunakan font-family yang lebih modern */

  font-family: "Inter", "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; 

}



/* =============================

   LOGIN PAGE (Tidak Diubah Signifikan)

   ============================= */

body.login-page {

  background: linear-gradient(135deg, #00bcd4, #2a4d8f); /* Gradien yang lebih segar */

  color: #fff;

  display: flex;

  justify-content: center;

  align-items: center;

  height: 100vh;

}



.login-container {

  background: rgba(255, 255, 255, 0.95); /* Sedikit lebih solid */

  padding: 2.5rem; /* Padding lebih besar */

  border-radius: 16px;

  width: 90%;

  max-width: 400px; /* Ukuran login lebih kecil */

  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); /* Bayangan lebih halus */

}



h2 {

  text-align: center;

  margin-bottom: 0.5rem;

  color: #2a4d8f; /* Warna header utama */

}



.subtitle {

  text-align: center;

  font-size: 0.9rem;

  color: #00bcd4;

  margin-bottom: 2rem;

}



label {

  font-size: 0.9rem;

  display: block;

  margin-bottom: 0.25rem;

  color: #333;

}



input {

  width: 100%;

  padding: 0.8rem; /* Padding lebih besar */

  margin-bottom: 1.2rem;

  border: 1px solid #ddd; /* Border tipis */

  border-radius: 8px;

  outline: none;

  font-size: 1rem;

  transition: border 0.3s;

}



input:focus {

  border-color: #00bcd4;

}



button {

  width: 100%;

  padding: 0.8rem;

  border: none;

  border-radius: 8px;

  background-color: #00bcd4;

  color: white;

  font-size: 1rem;

  font-weight: 600; /* Lebih tebal */

  cursor: pointer;

  transition: 0.3s;

  margin-bottom: 0.5rem;

}



button:hover {

  background-color: #0097a7;

  transform: translateY(-1px); /* Efek hover ringan */

  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

}



.status-text {

  text-align: center;

  font-size: 0.85rem;

  margin-top: 0.8rem;

  color:#e74c3c

}



/* =============================

   DASHBOARD PAGE

   ============================= */

body.dashboard-page {

  background: #eef1f7; /* Background lebih terang */

  color: #333;

  display: flex;

  justify-content: center;

  align-items: flex-start;

  min-height: 100vh;

  padding: 25px;

}



/* Container utama */

.container {

  background: #fff;

  width: 100%;

  max-width: 950px; /* Ukuran dashboard lebih lebar */

  border-radius: 12px;

  padding: 30px; /* Padding lebih besar */

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); /* Bayangan lebih lembut */

}



/* Header */

.header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 15px;

}



.header h2 {

  color: #2a4d8f;

  font-size: 1.8rem;

}



.welcome-text {

  font-size: 1rem;

  margin-top: 5px;

  color: #666; /* Warna abu-abu yang lebih lembut */

  font-weight: 400;

}



hr {

  border: none;

  border-top: 1px solid #eee;

  margin: 20px 0;

}



/* Summary Cards */

.summary-cards {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

  gap: 20px;

  margin-bottom: 30px;

}



.card {

  background: #fff;

  padding: 20px;

  border-radius: 10px;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);

  border-left: 5px solid #00bcd4; /* Aksen warna */

}



.card h4 {

  font-size: 1rem;

  color: #666;

  margin-bottom: 5px;

}



.card-value {

  font-size: 2rem;

  font-weight: 700;

  color: #2a4d8f;

}



/* Section data */

.data-section {

  margin-bottom: 30px;

}



.section-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 15px;

}



.section-header h3 {

  color: #333;

  font-size: 1.4rem;

}



/* Tabel */

.table-wrapper {

  overflow-x: auto;

  padding: 0; /* Menghilangkan padding card agar tabel full-width */

}



/* Card untuk table-wrapper (override) */

.table-wrapper.card {

  border: 1px solid #e0e0e0;

  border-left: none; /* Menghapus border-left ganda */

}





table {

  width: 100%;

  border-collapse: collapse;

  font-size: 14px;

}



th,

td {

  padding: 12px 10px;

  text-align: left; /* Teks rata kiri */

  border-bottom: 1px solid #ebebeb;

}



th {

  background-color: #2a4d8f; /* Warna header tabel lebih gelap */

  color: white;

  position: sticky;

  top: 0;

  font-weight: 600;

  text-align: center;

}



/* Penyesuaian text-align untuk konten tabel agar lebih rapi */

td {

  text-align: center;

}

td:first-child, th:first-child {

  text-align: left; /* Kolom pertama rata kiri */

}





tr:nth-child(even) {

  background-color: #f7f9fc;

}



tr:hover {

  background-color: #e9f0ff;

}



/* =============================

   BUTTONS

   ============================= */

.btn {

  padding: 8px 18px;

  border: none;

  border-radius: 20px; /* Bentuk pil/rounded penuh */

  cursor: pointer;

  font-weight: 500;

  transition: 0.2s ease;

  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

}



.btn:hover {

  opacity: 0.95;

  transform: translateY(-1px);

  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

}



/* Tombol Tambah User - warna hijau */
.btn-add {
  background-color: #2ecc71; /* Hijau segar */
  color: white;
}

.btn-add:hover {
  background-color: #27ae60; /* Hijau lebih gelap saat hover */
}




.btn-logout {

  background-color: #e74c3c;

  color: #fff;

  width: auto;

  padding: 8px 20px;

}



.btn-logout:hover {

  background-color: #c0392b;

}



.btn-delete {

  background-color: #e74c3c;

  color: white;

  border: none;

  padding: 6px 10px;

  border-radius: 6px;

  cursor: pointer;

  transition: background 0.2s;

  font-weight: 500;

  box-shadow: none;

}



.btn-delete:hover {

  background-color: #c0392b;

  transform: none;

}



/* =============================

   RESPONSIVE

   ============================= */
/* =============================
   RESPONSIVE (MOBILE IMPROVED)
   ============================= */

@media (max-width: 768px) {
  .container {
    padding: 20px;
  }

  /* Header: tetap sejajar di layar kecil */
  .header {
    flex-direction: row; /* tetap sejajar kiri-kanan */
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .header h2 {
    font-size: 1.4rem;
  }

  .welcome-text {
    font-size: 0.9rem;
  }

  /* Tombol logout tetap kecil dan di kanan */
  .btn-logout {
    width: auto;
    padding: 8px 14px;
    font-size: 0.9rem;
    border-radius: 16px;
  }

  /* Section header tetap sejajar kiri-kanan */
  .section-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .section-header h3 {
    font-size: 1.1rem;
  }

  .btn-add {
    width: auto;
    padding: 8px 14px;
    font-size: 0.9rem;
    border-radius: 16px;
  }

  /* Tabel sedikit lebih ramping agar muat di layar kecil */
  th, td {
    padding: 10px 6px;
    font-size: 13px;
  }

  table {
    font-size: 13px;
  }

  /* Sesuaikan container agar tabel tidak terpotong */
  .table-wrapper {
    overflow-x: auto;
  }
}
