/* Basic reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #000;                /* pure black background */
  --fg: #f5f5f5;             /* near-white text */
  --muted: #b3b3b3;
  --card: rgba(20, 20, 20, 0.85);
  --border: rgba(255,255,255,0.08);
  --focus: #6ea8ff;
}

html, body {
  height: 100%;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  color: var(--fg);
  background-image: url("../img/bg.png"); 
  background-position: center;
  background-size: cover;
}

/* Dark overlay to improve contrast over busy backgrounds */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.65));
  pointer-events: none;
  z-index: 0;
}

.center-wrap {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}

.card h1 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 14px;
  text-align: center;
}

label {
  display: block;
  font-size: 0.9rem;
  margin: 14px 0 8px;
  color: var(--muted);
}

input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

input[type="text"]::placeholder { color: #9aa0a6; }

input[type="text"]:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(110,168,255,0.25);
  background: rgba(255,255,255,0.08);
}

button {
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border: none;
  border-radius: 10px;
  background: #ffffff;
  color: #0b0b0b;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.06s ease, opacity 0.2s ease;
}

button:hover { opacity: 0.95; }
button:active { transform: translateY(1px) scale(0.99); }

.hint {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.result {
  margin-top: 14px;
  font-size: 0.95rem;
  min-height: 1.25rem;
  text-align: center;
  word-break: break-word;
}

.result.ok { color: #9ae6b4; }
.result.err { color: #feb2b2; }

/* Small screens */
@media (max-width: 380px) {
  .card { padding: 22px; }
  .card h1 { font-size: 1.2rem; }
}

.hidden { display: none; }

.status-card {
  max-width: 500px;
  margin-top: 20px;
  padding: 20px;
  background: rgba(20,20,20,0.85);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

.progress-bar-wrap {
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  height: 16px;
  margin: 10px 0;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4caf50, #81c784);
  border-radius: 8px;
  transition: width 0.4s ease;
}

.stages {
  margin-top: 12px;
}

.stage-item {
  display: flex;
  align-items: center;
  margin: 4px 0;
}

.stage-item .icon {
  color: #4caf50;
  margin-right: 8px;
}

.notice-box {
  margin-top: 14px;
  padding: 10px;
  border-radius: 8px;
}

.notice-success { background: rgba(76, 175, 80, 0.2); color: #9ae6b4; }
.notice-warning { background: rgba(255, 193, 7, 0.2); color: #ffe082; }
.notice-danger { background: rgba(244, 67, 54, 0.2); color: #ef9a9a; }

.status-line {
  font-size: 1rem;
  margin-bottom: 4px;
}

.point-line {
  font-size: 0.95rem;
  color: #81d4fa;
  margin-bottom: 4px;
}

.date-line {
  font-size: 0.9rem;
  color: #b0bec5;
  margin-bottom: 10px;
}
.logo-header {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.company-logo {
  height: 50px;
}

.extra-details {
  margin: 10px 0;
  font-size: 0.9rem;
  color: #ccc;
}

.print-btn {
  margin-top: 14px;
  padding: 10px 14px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .center-wrap {
    display: block;
    padding: 0;
  }
  .card, .status-card {
    box-shadow: none;
    background: #fff !important;
    border: none;
  }
  .print-btn, #app-form {
    display: none;
  }
}
