/* ----------------------------
   Global Reset
----------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ----------------------------
   Page Layout
----------------------------- */
body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background: linear-gradient(135deg, #0f172a, #020617);
  color: #e5e7eb;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ----------------------------
   Main Container
----------------------------- */
.container {
  background: #020617;
  width: 100%;
  max-width: 520px;
  padding: 24px 28px;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid #1e293b;
}

/* ----------------------------
   Headings
----------------------------- */
h1 {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 18px;
  color: #f8fafc;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: #cbd5f5;
}

/* ----------------------------
   Sections
----------------------------- */
.section {
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 10px;
  background: #020617;
  border: 1px solid #1e293b;
}

/* ----------------------------
   Inputs
----------------------------- */
input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #020617;
  color: #f8fafc;
  font-size: 0.95rem;
}

input::placeholder {
  color: #64748b;
}

input:focus {
  outline: none;
  border-color: #6366f1;
}

/* ----------------------------
   Buttons
----------------------------- */
button {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.1s ease;
}

/* Primary button */
button.primary {
  background: #4f46e5;
  color: white;
}

button.primary:hover {
  background: #4338ca;
  transform: translateY(-1px);
}

/* Secondary button */
button.secondary {
  background: #0f172a;
  border: 1px solid #334155;
  color: #e5e7eb;
}

button.secondary:hover {
  background: #020617;
}

/* Danger / warning */
button.warning {
  background: #b91c1c;
  color: white;
}

button.warning:hover {
  background: #991b1b;
}

/* ----------------------------
   Hidden Utility
----------------------------- */
.hidden {
  display: none;
}

/* ----------------------------
   Log Output
----------------------------- */
#log {
  margin-top: 14px;
  padding: 12px;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: pre-wrap;
  color: #a5b4fc;
}
