/* Gerege Kiosk DEMO — dark theme, no dependencies */

:root {
  --bg:       #0f1117;
  --surface:  #1a1d27;
  --border:   #2a2d3a;
  --text:     #e0e0e6;
  --muted:    #8888a0;
  --accent:   #3b82f6;
  --accent-h: #2563eb;
  --success:  #22c55e;
  --error:    #ef4444;
  --radius:   8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
header h1 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.status {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-weight: 500;
  text-transform: uppercase;
}
.status.online  { background: rgba(34,197,94,0.15); color: var(--success); }
.status.offline { background: rgba(239,68,68,0.15); color: var(--error); }

/* Main */
main {
  flex: 1;
  padding: 2rem;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

/* Panels */
.panel {
  margin-bottom: 2rem;
}
.panel h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Policy panel */
.policy-panel button {
  margin-bottom: 0.75rem;
}
#policy-output {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: 0.8rem;
  color: var(--text);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 300px;
  overflow-y: auto;
}

/* Buttons */
button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
button:hover  { background: var(--accent-h); }
button:active { transform: scale(0.98); }
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 720px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}
.card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.card p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  flex: 1;
}
.card .btn-flow {
  align-self: flex-start;
}

/* Log list */
.log {
  list-style: none;
  margin-top: 0.75rem;
  font-size: 0.8rem;
}
.log li {
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  animation: fadeIn 0.3s ease;
}
.log li:last-child { border-bottom: none; }
.log li.done { color: var(--success); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
