/* public/styles.css */
:root {
  --bg: #0f172a;
  --card: #1e293b;
  --card-2: #334155;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --green: #22c55e;
  --red: #ef4444;
  --amber: #f59e0b;
  --border: #334155;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--text);
  min-height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

h1, h2, h3 { margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 14px; }

input, select, button {
  font: inherit;
  color: inherit;
}

input[type="text"], input[type="email"], input[type="password"], input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0b1220;
  color: var(--text);
  margin-bottom: 12px;
  outline: none;
}
input:focus { border-color: var(--accent); }

button {
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.1s, opacity 0.2s;
}
button:hover { transform: translateY(-1px); }
button:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary { background: var(--accent); color: #0f172a; }
.btn-green   { background: var(--green);  color: #fff; }
.btn-red     { background: var(--red);    color: #fff; }
.btn-ghost   { background: transparent; color: var(--text); border: 1px solid var(--border); }

.row { display: flex; gap: 16px; flex-wrap: wrap; }
.col { flex: 1; min-width: 280px; }

.timer {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 56px;
  font-weight: 700;
  text-align: center;
  margin: 16px 0;
  color: var(--accent);
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.dot-green { background: var(--green); }
.dot-red { background: var(--red); }
.dot-amber { background: var(--amber); }

video {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  background: #000;
  display: block;
}

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.alert-error  { background: rgba(239,68,68,0.15);  border: 1px solid var(--red); color: #fecaca; }
.alert-warn   { background: rgba(245,158,11,0.15); border: 1px solid var(--amber); color: #fde68a; }
.alert-ok     { background: rgba(34,197,94,0.15);  border: 1px solid var(--green); color: #bbf7d0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.badge-open { background: rgba(34,197,94,0.2); color: var(--green); }
.badge-closed { background: rgba(148,163,184,0.2); color: var(--muted); }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.topbar h1 { font-size: 24px; }
