
/* =========================================
   WIFI MANAGEMENT
   TEMA DARK BLUE PREMIUM
   Versi 2.0
========================================= */

:root {
  color-scheme: dark;

  --bg: #080f1e;
  --bg-secondary: #0d1729;
  --surface: #111e33;
  --surface-hover: #192a44;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-soft: #172e50;
  --text: #e8eef8;
  --text-secondary: #a1b0c6;
  --muted: #788ba6;
  --border: #263751;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #fb7185;
  --radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* HEADER */

header {
  background: linear-gradient(135deg, #101d33, #0b1425);
  color: #fff;
  padding: 24px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 30px #00000020;
}

.header-content {
  max-width: 1200px;
  margin: auto;
}

header h1 {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

header p {
  color: var(--text-secondary);
  margin-top: 7px;
  font-size: 14px;
}

/* NAVIGASI */

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

nav a {
  color: #cbd8ec;
  text-decoration: none;
  background: #17243a;
  border: 1px solid transparent;
  padding: 11px 15px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s,
              color 0.2s, transform 0.2s;
}

nav a:hover,
nav a.active {
  background: var(--primary-soft);
  color: #93c5fd;
  border-color: #315b92;
}

nav a:hover {
  transform: translateY(-1px);
}

/* KONTEN UTAMA */

main {
  width: 100%;
  max-width: 1240px;
  margin: 30px auto;
  padding: 0 20px;
}

.welcome,
.page-title {
  margin-bottom: 25px;
}

.welcome h2,
.page-title h2 {
  font-size: 25px;
  line-height: 1.3;
  margin-bottom: 8px;
  color: #f1f5f9;
}

.welcome p,
.page-title p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* KARTU DASHBOARD */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  min-width: 0;
  background: linear-gradient(145deg, #14223a, #101b2e);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px #00000015;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: #3b5d88;
  transform: translateY(-2px);
}

.card-label,
.card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 14px;
}

.number {
  font-size: 30px;
  font-weight: 700;
  color: #f8fafc;
  overflow-wrap: anywhere;
}

.blue {
  color: #60a5fa;
}

.green {
  color: #34d399;
}

.orange {
  color: #fbbf24;
}

/* PANEL DAN PAKET */

.section,
.panel {
  margin-top: 24px;
  background: var(--surface);
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px #00000010;
}

.section h3,
.panel h3 {
  margin-bottom: 20px;
  font-size: 19px;
  color: #edf4ff;
}

.plan {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
}

.plan:last-child {
  border-bottom: none;
}

.plan p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 6px;
  line-height: 1.6;
}

.price {
  font-weight: 700;
  font-size: 19px;
  color: #93c5fd;
  white-space: nowrap;
}

/* NOTIFIKASI */

.notice {
  margin-bottom: 22px;
  padding: 16px;
  border-radius: 10px;
  background: #142b49;
  border: 1px solid #284c78;
  color: #bfdbfe;
  font-size: 14px;
  line-height: 1.7;
}

.notice.warning {
  background: #352817;
  border-color: #755322;
  color: #fde68a;
}

/* FORMULIR */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field label {
  font-size: 14px;
  font-weight: 700;
  color: #dbe7f8;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #344761;
  border-radius: 9px;
  background: #0b1526;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #71829b;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px #3b82f625;
}

.field select option {
  background: #111e33;
  color: var(--text);
}

.field input:disabled,
.field select:disabled,
.field textarea:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.field input[type="checkbox"],
.field input[type="radio"] {
  width: auto;
  accent-color: var(--primary);
}

.field input[type="file"] {
  padding: 10px;
}

.full-width {
  grid-column: 1 / -1;
}

/* TOMBOL */

.button {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 12px 17px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s,
              transform 0.2s;
}

.button:active {
  transform: scale(0.98);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.button-primary {
  background: var(--primary);
  color: #fff;
}

.button-primary:hover {
  background: var(--primary-hover);
}

.button-delete {
  background: #3b1925;
  border-color: #6d2939;
  color: #fda4af;
}

.button-delete:hover {
  background: #54202e;
}

/* PENCARIAN DAN TABEL */

.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.toolbar input,
.toolbar select {
  flex: 1;
  min-width: 0;
  padding: 12px;
  border: 1px solid #344761;
  border-radius: 9px;
  background: #0b1526;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

.toolbar input::placeholder {
  color: #71829b;
}

.toolbar input:focus,
.toolbar select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px #3b82f620;
}

.table-wrap {
  overflow-x: auto;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: var(--surface);
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
  vertical-align: middle;
}

th {
  background: #192942;
  color: #cbdaf0;
  font-weight: 700;
  white-space: nowrap;
}

td {
  color: #d6e0ef;
}

tbody tr {
  transition: background 0.15s;
}

tbody tr:hover {
  background: #192942;
}

tbody tr:last-child td {
  border-bottom: none;
}

.empty {
  padding: 28px;
  text-align: center;
  color: var(--text-secondary);
}

/* STATUS PELANGGAN */

.status {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-active {
  background: #12382f;
  color: #6ee7b7;
  border: 1px solid #24634f;
}

.status-inactive {
  background: #401d29;
  color: #fda4af;
  border: 1px solid #713044;
}

/* ELEMEN UMUM TAMBAHAN */

a {
  transition: color 0.2s;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 3px;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
}

::selection {
  background: #2563eb;
  color: #fff;
}

/* BAGIAN BAWAH */

footer {
  text-align: center;
  padding: 28px 16px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid #1b2a40;
  margin-top: 40px;
}

footer p {
  margin-top: 7px;
}

/* TAMPILAN TABLET DAN HP */

@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  main {
    padding: 0 16px;
  }
}

@media (max-width: 750px) {
  header {
    padding: 20px 16px;
  }

  header h1 {
    font-size: 23px;
  }

  nav {
    gap: 8px;
    margin-top: 18px;
  }

  nav a {
    padding: 10px 12px;
    font-size: 13px;
  }

  main {
    margin-top: 24px;
    padding: 0 14px;
  }

  .card {
    padding: 20px;
  }

  .number {
    font-size: 27px;
  }

  .welcome h2,
  .page-title h2 {
    font-size: 22px;
  }

  .section,
  .panel {
    padding: 18px;
  }

  .plan {
    align-items: flex-start;
    gap: 12px;
  }

  .price {
    font-size: 16px;
  }
}

@media (max-width: 700px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .full-width {
    grid-column: auto;
  }

  .toolbar {
    flex-direction: column;
  }

  .toolbar .button {
    width: 100%;
  }

  .table-wrap {
    border-radius: 8px;
  }

  th,
  td {
    padding: 12px 10px;
  }
}

/* PENGURANGAN ANIMASI */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* RINGKASAN DATA PELANGGAN */

.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 22px;
}

.summary-card {
  min-width: 0;
  padding: 22px;
  background: linear-gradient(145deg, #14233b, #101b2e);
  border: 1px solid #263751;
  border-radius: 14px;
  box-shadow: 0 8px 24px #00000015;
}

.summary-card p {
  color: #a1b0c6;
  font-size: 14px;
  margin-bottom: 12px;
}

.summary-card strong {
  font-size: 27px;
  color: #e8eef8;
}

.summary-card strong[style*="15803d"] {
  color: #34d399 !important;
}

.summary-card strong[style*="dc2626"] {
  color: #fb7185 !important;
}

.package-notice {
  margin-top: 20px;
}

@media (max-width: 700px) {
  .summary {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .summary-card {
    padding: 17px;
  }
}
