@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Barlow:wght@300;400;500;600&display=swap');

body {
  background: #f0f0f0;
  color: #222222;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  margin: 0;
  padding: 0;
}

header {
  background: linear-gradient(135deg, rgb(49, 46, 46), rgb(107, 105, 101), rgb(196, 196, 196));
  color: white;
  padding: 14px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 40px;
  height: 40px;
  background: white;
  color: #222222;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
}

header h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: white;
  letter-spacing: 2px;
  margin: 0;
}

header h1 span {
  color: #dddddd;
}

.subjudul {
  font-size: 10px;
  color: #cccccc;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 2px 0 0 0;
}

.navigasi {
  display: flex;
  gap: 8px;
}

.nav-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: #dddddd;
  padding: 8px 18px;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  cursor: pointer;
}

.nav-btn:hover {
  background: rgba(255,255,255,0.15);
  color: white;
}

.nav-btn-active {
  background: white;
  color: #222222;
  border: 1px solid white;
  padding: 8px 18px;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.jam-area {
  text-align: right;
}

#live-time {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: white;
  letter-spacing: 2px;
}

#live-date {
  display: block;
  font-size: 10px;
  color: #ffffff;
  margin-top: 2px;
}

.page {
  display: none;
}

.page-active {
  display: block;
}

/* DASHBOARD */
.isi-dashboard {
  padding: 28px 40px;
}

.kotak-statistik {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.statistik {
  background: white;
  border: 1px solid #dddddd;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.ikon {
  font-size: 26px;
}

.angka {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: #222222;
  line-height: 1;
}

.keterangan {
  font-size: 11px;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* INFRASTRUKTUR */
.bagian-infrastruktur {
  margin-top: 8px;
}

.judul-infrastruktur {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
  color: #222222;
}

.daftar-infrastruktur {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.kartu-infrastruktur {
  background: white;
  border: 1px solid #dddddd;
  padding: 20px;
  text-align: center;
}

.foto {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 2px solid #dddddd;
  margin-bottom: 12px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.nama-infrastruktur {
  font-size: 14px;
  font-weight: 700;
  color: #222222;
  margin-bottom: 4px;
}

.spesialis {
  font-size: 12px;
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* LAYOUT DUA KOLOM */
.layout-dua-kolom {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: calc(100vh - 66px);
  overflow: hidden;
}

.form-panel {
  background: white;
  border-right: 1px solid #dddddd;
  overflow-y: auto;
}

.kepala-panel {
  padding: 14px 20px;
  border-bottom: 1px solid #dddddd;
  background: #f5f5f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kepala-panel h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
}

.isi-form {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-tabel {
  background: #f0f0f0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.baris-input {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.baris-input label {
  font-size: 11px;
  font-weight: 600;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input, select {
  background: #f5f5f5;
  border: 1px solid #dddddd;
  color: #222222;
  padding: 9px 12px;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

input:focus, select:focus {
  border-color: #222222;
  background: white;
}

input::placeholder {
  color: #cccccc;
}

select option {
  background: white;
}

.tombol-aksi {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.tombol-simpan {
  background: #222222;
  color: white;
  border: none;
  padding: 10px 22px;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.tombol-simpan:hover {
  background: #444444;
}

.tombol-batal {
  background: transparent;
  color: #999999;
  border: 1px solid #dddddd;
  padding: 10px 18px;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  cursor: pointer;
}

.tombol-batal:hover {
  border-color: #222222;
  color: #222222;
}

.baris-filter {
  display: flex;
  gap: 6px;
  padding: 12px 20px;
  background: white;
  border-bottom: 1px solid #dddddd;
}

.tab {
  background: transparent;
  border: 1px solid #dddddd;
  color: #999999;
  padding: 5px 14px;
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  cursor: pointer;
}

.tab:hover {
  border-color: #222222;
  color: #222222;
}

.tab-active {
  background: #222222;
  color: white;
  border: 1px solid #222222;
  padding: 5px 14px;
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.label {
  background: #f0f0f0;
  color: #888888;
  border: 1px solid #dddddd;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
}

.label-edit {
  background: #222222;
  color: white;
  border-color: #222222;
}

.area-tabel {
  overflow-x: auto;
  padding: 16px 20px;
  flex: 1;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid #dddddd;
}

thead tr {
  background: #f5f5f5;
  border-bottom: 2px solid #dddddd;
}

th {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999999;
  padding: 12px 14px;
  text-align: left;
  white-space: nowrap;
}

td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  vertical-align: middle;
  color: #444444;
}

tbody tr:hover {
  background: #f5f5f5;
}

tbody tr:last-child td {
  border-bottom: none;
}

.empty-row td {
  text-align: center;
  color: #999999;
  font-style: italic;
  padding: 28px;
}

/* STATUS BADGE */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #dddddd;
}

.s-aktif {
  background: #f0f0f0;
  color: #222222;
}

.s-expired {
  background: #222222;
  color: white;
}

/* PAKET BADGE */
.pkg-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #dddddd;
  background: #f0f0f0;
  color: #555555;
}

.pkg-platinum {
  background: #222222;
  color: white;
  border-color: #222222;
}

.pkg-gold {
  background: #555555;
  color: white;
  border-color: #555555;
}

.pkg-silver {
  background: #888888;
  color: white;
  border-color: #888888;
}

.pkg-basic {
  background: #f0f0f0;
  color: #888888;
}

/* ACTION BUTTONS */
.action-btns {
  display: flex;
  gap: 6px;
}

.btn-edit {
  background: #f0f0f0;
  color: #444444;
  border: 1px solid #dddddd;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
}

.btn-edit:hover {
  background: #444444;
  color: white;
}

.btn-del {
  background: white;
  color: #cccccc;
  border: 1px solid #dddddd;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
}

.btn-del:hover {
  background: #222222;
  color: white;
}

@media (max-width: 1024px) {
  .kotak-statistik {
    grid-template-columns: repeat(2, 1fr);
  }

  .daftar-infrastruktur {
    grid-template-columns: 1fr;
  }

  .layout-dua-kolom {
    grid-template-columns: 1fr;
    height: auto;
  }

  .form-panel {
    border-right: none;
    border-bottom: 1px solid #dddddd;
  }
}

@media (max-width: 768px) {
  header {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .navigasi {
    width: 100%;
    order: 3;
  }

  .nav-btn, .nav-btn-active {
    flex: 1;
    text-align: center;
    font-size: 12px;
  }

  .isi-dashboard {
    padding: 16px;
  }

  .kotak-statistik {
    grid-template-columns: repeat(2, 1fr);
  }
}