/* public/styles.css */

:root {
  --bg: #050509;
  --card-bg: #090a12;
  --accent-1: #12c2e9;   /* neon cyan */
  --accent-2: #c471ed;   /* purple */
  --accent-3: #f4d03f;   /* gold claws */
  --text-main: #f7f7ff;
  --text-muted: #a4a4c5;
  --danger: #ff4d6a;
  --success: #57f287;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.65);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Roboto", sans-serif;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-main);
  background: radial-gradient(circle at top, #1b1736, #050509 55%);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page {
  width: 100%;
  max-width: 1200px;
  padding: 32px 20px 40px;
}

.card {
  background: radial-gradient(circle at top left, #13132a, var(--card-bg));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 28px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

h1,
h2,
h3 {
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}

.gradient-text {
  background: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fff, #57f287);
  box-shadow: 0 0 10px rgba(87, 242, 135, 0.7);
}

p {
  margin: 0 0 10px;
  color: var(--text-muted);
}

/* Inputs / buttons */

.input-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 10px;
}

input[type="text"],
input[type="password"] {
  flex: 1;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 5, 14, 0.85);
  color: var(--text-main);
  font-size: 14px;
}

input::placeholder {
  color: rgba(164, 164, 197, 0.65);
}

button {
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  color: #050509;
  background-image: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    filter 0.12s ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75);
}

button.secondary {
  background-image: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

/* Status text */

.status {
  margin-top: 8px;
  font-size: 13px;
}

.status.ok {
  color: var(--success);
}

.status.err {
  color: var(--danger);
}

/* Queue list (devcamp) */

.queue {
  margin-top: 18px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(11, 10, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 6px;
}

.queue-item span.url {
  color: var(--text-main);
  word-break: break-all;
}

.queue-item button {
  font-size: 11px;
  padding: 6px 10px;
}

/* Layout helpers */

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}

.col {
  flex: 1;
  min-width: 260px;
}

@media (max-width: 720px) {
  .page {
    padding: 24px 12px 32px;
  }

  .card {
    padding: 22px 18px 20px;
  }

  .input-row {
    flex-direction: column;
  }
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background: radial-gradient(circle at top, #0b1220, #020617 55%, #000 100%);
  color: #e5e7eb;
}

.app-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

h1, h2, h3 {
  color: #f9fafb;
  margin: 0 0 8px 0;
}

/* cards */
.card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
}

/* layout */
.flex {
  display: flex;
}
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gap-8 {
  gap: 8px;
}
.gap-12 {
  gap: 12px;
}
.gap-16 {
  gap: 16px;
}
.mt-8 {
  margin-top: 8px;
}
.mt-12 {
  margin-top: 12px;
}
.mt-16 {
  margin-top: 16px;
}

/* buttons */
.btn {
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: white;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
}
.btn-secondary {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.5);
  color: #e5e7eb;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* inputs */
input[type="text"],
input[type="password"],
input[type="number"] {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
  padding: 6px 12px;
  font-size: 14px;
  outline: none;
}
input[type="text"]::placeholder,
input[type="password"]::placeholder {
  color: #6b7280;
}

/* switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;
  background-color: #1f2937;
  transition: 0.2s;
  border-radius: 9999px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 2px;
  background-color: #9ca3af;
  transition: 0.2s;
  border-radius: 50%;
}
.switch input:checked + .slider {
  background-color: #22c55e;
}
.switch input:checked + .slider:before {
  transform: translateX(18px);
}

/* login overlay */
.login-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
}
.login-card {
  width: 100%;
  max-width: 380px;
}

/* small text */
.text-muted {
  color: #9ca3af;
  font-size: 13px;
}

/* queue list */
.queue-list {
  max-height: 260px;
  overflow-y: auto;
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid rgba(51, 65, 85, 0.8);
}
.queue-item {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(30, 64, 175, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.queue-item:last-child {
  border-bottom: none;
}

/* camp public page */
.camp-hero {
  text-align: center;
  margin-top: 60px;
}
.camp-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e5e7eb;
}
.camp-subtitle {
  margin-top: 8px;
  color: #9ca3af;
}
.camp-input-row {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.camp-status {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
}
.camp-status-error {
  color: #f97373;
}
.camp-status-ok {
  color: #4ade80;
}
