body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f172a;
  color: #e5e7eb;
}

.app-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

section {
  background: #020617;
  padding: 24px 20px;
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
}

h1,
h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: #9ca3af;
  opacity: 0.8;
}

label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

input {
  width: 100%;
  padding: 8px 10px;
  margin-top: 4px;
  border-radius: 8px;
  border: 1px solid #1f2937;
  background: #020617;
  color: #e5e7eb;
}

input:focus {
  outline: none;
  border-color: #3b82f6;
}

button {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 999px;
  margin-top: 8px;
  background: #22c55e;
  color: #020617;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}

.error-text {
  color: #f97316;
  font-size: 0.8rem;
  min-height: 18px;
}

/* CS (petugas) */

.cs-header {
  margin-bottom: 16px;
}

#logout-btn {
  margin-top: 16px;
  background: #ef4444;
  color: #f9fafb;
}

.checklist-group {
  border-radius: 8px;
  border: 1px solid #111827;
  margin-bottom: 8px;
  overflow: hidden;
  background: #020617;
}

.checklist-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  cursor: pointer;
  background: #020617;
}

.checklist-group-header:hover {
  background: #030712;
}

.checklist-group-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.checklist-group-summary {
  font-size: 0.8rem;
  color: #e5e7eb;
  margin-right: 8px;
}

.checklist-group-toggle {
  font-size: 1rem;
  width: 16px;
  text-align: center;
}

.checklist-group-body {
  padding: 4px 10px 6px;
}

/* ADMIN DASHBOARD */

#admin-section {
  max-width: 720px;
  width: 100%;
}

/* header admin */

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.admin-header h1 {
  margin: 0;
  font-size: 1.5rem;
}

/* card umum */

.card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* filter tanggal */

.admin-filters {
  margin-bottom: 1rem;
}

/* kotak tanggal + tombol diatur kolom:
   baris 1: label + input
   baris 2: tombol di kanan */
.admin-filters-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.admin-filter-label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  gap: 0.25rem;
}

.admin-filter-label input[type="date"] {
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  border: none;
  outline: none;
  background: #020617;
  color: #e5e7eb;
}

/* biar box tanggal nggak kelihatan terlalu besar */
#admin-date {
  min-width: 0;
}

/* tombol Refresh di kanan bawah box tanggal */
#admin-refresh-btn {
  width: auto;
  align-self: flex-start;
  padding: 0.4rem 1.1rem;
  margin-top: 0.25rem;
}

/* teks tanggal terpilih */

.admin-selected-date {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

/* list CS di admin */

#admin-cs-list {
  margin-top: 8px;
  margin-bottom: 12px;
}

.admin-cs-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-cs-card,
.cs-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #111827;
  background: #020617;
}

.cs-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cs-card-main {
  min-width: 160px;
}

.admin-cs-name,
.cs-name {
  font-weight: 600;
  font-size: 1rem;
}

.cs-task {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 0.25rem;
}

.admin-cs-status,
.cs-card-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.cs-status {
  font-weight: 500;
}

.cs-progress {
  opacity: 0.85;
}

.cs-submit-time {
  font-size: 0.8rem;
  opacity: 0.7;
}

.status-sudah {
  color: #6ee7b7;
}

.status-belum,
.status-pending {
  color: #f97316;
}

.status-done {
  color: #4ade80;
  font-weight: 500;
}

.admin-cs-actions,
.cs-card-actions {
  display: flex;
  justify-content: flex-end;
}

/* tombol custom admin */

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1.2rem;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 500;
}

.btn-primary {
  background: #22c55e;
  color: #020617;
}

.btn-secondary {
  background: #0ea5e9;
  color: #020617;
}

.btn-danger {
  background: #f97373;
  color: #020617;
}

/* detail checklist admin */

.admin-detail {
  margin-top: 1rem;
  border-top: 1px solid #111827;
  padding-top: 10px;
}

.admin-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.admin-detail-content {
  max-height: 420px;
  overflow: auto;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.detail-table thead {
  position: sticky;
  top: 0;
  background: #020617;
}

.detail-table th,
.detail-table td {
  padding: 0.4rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.detail-table th {
  font-weight: 600;
  font-size: 0.8rem;
}

.detail-table tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.6);
}

.detail-room-name {
  font-size: 0.9rem;
}

.detail-room-status {
  font-size: 0.85rem;
}

.detail-reason {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #e5e7eb;
}

.info-text {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* responsif kecil */

@media (max-width: 480px) {
  .card {
    padding: 0.75rem 0.9rem;
  }
}