:root {
  --bg: #020617;
  --panel: rgba(6, 11, 25, 0.92);
  --panel-alt: rgba(11, 18, 35, 0.95);
  --border: #1e3a8a;
  --blue-neon: #00f0ff;
  --blue-light: #7dd3fc;
  --blue-soft: #0284c7;
  --blue-glow: rgba(0, 240, 255, 0.45);
  --text: #f8fafc;
  --text-dim: #94a3b8;
  --green: #22c55e;
  --red: #ef4444;
}

* { box-sizing: border-box; }

/* Animasi Bingkai Menyala Biru Dinamis */
@keyframes borderPulse {
  0%, 100% {
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.25), inset 0 0 15px rgba(0, 240, 255, 0.08);
    border-color: rgba(2, 132, 199, 0.6);
  }
  50% {
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.6), inset 0 0 30px rgba(0, 240, 255, 0.2);
    border-color: rgba(0, 240, 255, 1);
  }
}

/* Animasi Judul Berkedip Biru Elegan */
@keyframes titleShine {
  0%, 100% { 
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.6), 0 0 25px rgba(0, 240, 255, 0.3); 
    color: var(--blue-neon);
  }
  50% { 
    text-shadow: 0 0 25px rgba(125, 211, 252, 0.9), 0 0 40px rgba(0, 240, 255, 0.7); 
    color: var(--blue-light);
  }
}

/* Animasi Masuk Halaman Halus */
@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.95) translateY(15px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  
  /* Background Sirkuit Biru & Hitam */
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.85), rgba(5, 10, 25, 0.92)), url('https://the.splg.site/images/2026/09/10/imagef39da9f7d0e63cef.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
}

.card {
  width: 100%;
  max-width: 680px;
  background: var(--panel);
  border: 2px solid var(--blue-soft);
  border-radius: 18px;
  padding: 36px 30px 38px;
  animation: borderPulse 3.5s ease-in-out infinite, scaleUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

/* Garis Laser Cahaya Biru Bergerak di Atas Kartu */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue-light), transparent);
  animation: laserMove 3.5s linear infinite;
}

@keyframes laserMove {
  0% { left: -100%; }
  100% { left: 100%; }
}

.card__title {
  margin: 0 0 28px;
  text-align: center;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  animation: titleShine 3s ease-in-out infinite;
}

.field {
  margin-bottom: 20px;
  flex: 1;
}

.field-row {
  display: flex;
  gap: 14px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-neon);
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

label:hover {
  color: var(--blue-light);
}

.hint {
  color: var(--text-dim);
  font-weight: normal;
  font-size: 11.5px;
}

textarea,
input[type="date"] {
  width: 100%;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 13px 15px;
  color: var(--text);
  font-size: 13.5px;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

textarea {
  resize: vertical;
  line-height: 1.6;
}

textarea:focus,
input[type="date"]:focus {
  outline: none;
  border-color: var(--blue-neon);
  box-shadow: 0 0 18px var(--blue-glow), inset 0 0 6px rgba(0, 240, 255, 0.25);
  background: #091530;
}

.quick-range {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}

.btn {
  cursor: pointer;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 16px;
  border: 1px solid transparent;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn--ghost {
  flex: 1;
  background: var(--panel-alt);
  border-color: var(--border);
  color: var(--blue-neon);
}

.btn--ghost:hover {
  border-color: var(--blue-neon);
  background: rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.3);
  transform: translateY(-3px);
  color: var(--blue-light);
}

.btn--primary {
  width: 100%;
  background: linear-gradient(135deg, #00f0ff, #0284c7);
  color: #020617;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 16px;
  text-transform: uppercase;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.45);
  position: relative;
  overflow: hidden;
}

.btn--primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: rotate(30deg) translateX(-100%);
  transition: transform 0.6s ease;
}

.btn--primary:hover::after {
  transform: rotate(30deg) translateX(100%);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #38bdf8, #00d2df);
  box-shadow: 0 0 45px rgba(0, 240, 255, 0.8);
  transform: translateY(-3px);
}

.btn--primary:active {
  transform: translateY(0);
}

.result {
  margin-top: 28px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
  animation: scaleUp 0.4s ease forwards;
}

.result__header {
  display: flex;
  justify-content: space-between;
  color: var(--blue-neon);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.result__header span:last-child {
  color: var(--text-dim);
  font-weight: normal;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 9px;
  max-height: 480px;
  overflow-y: auto;
  background: var(--panel-alt);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.85);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 560px;
}

thead th {
  text-align: left;
  background: rgba(4, 9, 23, 0.98);
  color: var(--blue-neon);
  padding: 13px;
  font-weight: 700;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
}

tbody td {
  padding: 12px 13px;
  border-bottom: 1px solid #111e38;
  white-space: nowrap;
}

tbody tr {
  transition: all 0.2s ease;
}

tbody tr:hover {
  background: rgba(0, 240, 255, 0.08);
  box-shadow: inset 0 0 12px rgba(0, 240, 255, 0.05);
}

tbody tr:last-child td {
  border-bottom: none;
}

.status-valid { 
  color: var(--green); 
  font-weight: 700; 
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.status-invalid { 
  color: var(--red); 
  font-weight: 700; 
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.status-none { 
  color: var(--text-dim); 
  font-weight: 600; 
}

.empty-row td {
  text-align: center;
  color: var(--text-dim);
  padding: 26px 10px;
}

input[type="file"] {
  width: 100%;
  background: var(--panel-alt);
  border: 1px dashed var(--border);
  border-radius: 9px;
  padding: 13px;
  color: var(--text-dim);
  font-size: 13px;
  transition: all 0.3s ease;
  cursor: pointer;
}

input[type="file"]:hover {
  border-color: var(--blue-neon);
  background: #0b1736;
  color: var(--text);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.file-status {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-dim);
}

.file-status.ok { 
  color: var(--green); 
  font-weight: 600;
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}

.file-status.error { 
  color: var(--red); 
  font-weight: 600;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.checkbox-row:hover {
  color: var(--text);
}

.checkbox-row input {
  accent-color: var(--blue-neon);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Scrollbar Biru Futuristik */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(2, 5, 14, 0.9);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--blue-neon);
  box-shadow: 0 0 12px var(--blue-neon);
}
/* Styling Container Logo */
.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

/* Styling Gambar Logo */
.app-logo {
  max-width: 300px; /* Atur ukuran lebar logo sesuai kebutuhan */
  max-height: 200px; /* Batasi tinggi logo agar tetap proporsional */
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.6)); /* Efek cahaya neon biru */
  transition: transform 0.3s ease;
}

.app-logo:hover {
  transform: scale(1.05);
}