:root {
  --bg: #f6f7fb;
  --card: #fff;
  --accent: #0b7;
  --muted: #666;
  --danger: #e74;
}

* {
  box-sizing: border-box;
  font-family: Inter, system-ui, Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: #111;
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 920px;
  padding: 18px;
}

header h1 {
  margin: 0 0 12px;
  font-size: 22px;
  text-align: center;
}

.card {
  background: var(--card);
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(10, 10, 10, 0.06);
  margin-bottom: 12px;
}

.hidden {
  display: none !important;
}

label {
  display: block;
  margin: 12px 0;
  font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="datetime-local"],
input[type="number"] {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 14px;
  margin-top: 4px;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="datetime-local"]:focus,
input[type="number"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 187, 119, 0.1);
}

.row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

button {
  padding: 10px 16px;
  border-radius: 8px;
  border: 0;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, transform 0.1s;
}

button:hover {
  background: #0a9;
}

button:active {
  transform: translateY(1px);
}

button.danger {
  background: var(--danger);
}

button.danger:hover {
  background: #d63;
}

.info {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 16px 0;
  padding: 16px;
  background: #f9f9f9;
  border-radius: 6px;
}

.info div {
  flex: 1;
  min-width: 200px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
}

footer {
  margin-top: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  min-width: 320px;
  max-width: 90%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.modal-content #modalText {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.5;
}

pre {
  background: #f2f2f2;
  padding: 12px;
  border-radius: 6px;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  margin: 8px 0;
}

hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 20px 0;
}

h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 20px;
}

h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 18px;
}
