
/* === WRAPPER UTAMA === */
.nawala-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

/* === PANEL KATEGORI KIRI === */
.kategori-panel {
  flex: 0 0 250px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius);
  backdrop-filter: blur(8px);
  box-shadow: var(--soft-shadow);
}

.kategori-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kategori-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kategori-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.2s ease;
}

.kategori-list li:hover,
.kategori-list li.active {
  background: var(--highlight-dark);
  color: var(--highlight);
}

.edit-kategori-btn {
  background: transparent;
  border: none;
  color: var(--highlight);
  cursor: pointer;
  font-size: 0.85rem;
  margin-left: 8px;
}

.edit-kategori-btn:hover {
  color: white;
  text-shadow: 0 0 6px var(--highlight);
}

/* === PANEL DOMAIN === */
.nawala-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* === PENCARIAN DAN AKSI === */
.nawala-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.search-wrapper {
  width: 100%;
}

.search-wrapper .search-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--border-radius);
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* === TABEL DOMAIN === */
.table-wrapper {
  overflow-x: auto;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  text-align: left;
  font-size: 0.95rem;
}

/* === TOMBOL KECIL === */
.glass-btn.small-btn {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  background: rgba(0, 191, 255, 0.08);
  border: 1px solid #00bfff;
  color: #00bfff;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.2);
}

.glass-btn.small-btn:hover {
  background: rgba(0, 191, 255, 0.2);
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.5);
}

.glass-btn.small-btn.danger {
  border-color: red;
  color: red;
  background: rgba(255, 0, 0, 0.08);
}

.glass-btn.small-btn.danger:hover {
  background: rgba(255, 0, 0, 0.2);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

/* === MODAL UMUM === */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 600px;
  color: white;
  backdrop-filter: blur(12px);
  box-shadow: var(--soft-shadow);
  position: relative;
  animation: fadeInUp 0.3s ease;
}

.modal .close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  color: white;
  cursor: pointer;
}

/* === FORM === */
.form-2col {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-col {
  flex: 1;
  min-width: 250px;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.form-row label {
  width: 120px;
  font-size: 0.95rem;
  color: white;
  font-weight: 500;
  flex-shrink: 0;
}

.form-row input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--border-radius);
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 0.95rem;
}

/* === TOMBOL UMUM === */
.glass-btn.full-btn {
  width: 100%;
  padding: 12px;
  background: rgba(0, 191, 255, 0.1);
  border: 1px solid #00bfff;
  color: #00bfff;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}

.glass-btn.full-btn:hover {
  background: rgba(0, 191, 255, 0.2);
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.6);
}

/* === TELEGRAM SETTINGS === */
#telegram-settings-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#telegram-settings-form .form-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

#telegram-settings-form label {
  width: 120px;
  font-size: 0.95rem;
  color: white;
  font-weight: 500;
  flex-shrink: 0;
}

#telegram-settings-form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: white;
  font-size: 0.95rem;
}

#telegram-settings-form button#save-telegram-settings {
  width: auto;
  align-self: flex-start;
  padding: 10px 20px;
  background: rgba(0, 191, 255, 0.08);
  border: 1px solid #00bfff;
  color: #00bfff;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}

#telegram-settings-form button#save-telegram-settings:hover {
  background: rgba(0, 191, 255, 0.2);
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.6);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nawala-wrapper {
    flex-direction: column;
  }

  .action-buttons {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .form-2col {
    flex-direction: column;
  }

  #telegram-settings-form .form-row {
    flex-direction: column;
    align-items: flex-start;
  }

  #telegram-settings-form label {
    width: 100%;
  }

  #telegram-settings-form button#save-telegram-settings {
    margin-top: 10px;
  }
}
