/*
 * Dashboard-inspired light theme
 * Clean navbar, hero header, modern cards and buttons
 */

:root {
  --bg: #f8f9fc;
  --surface: #ffffff;
  --text: #2c3e50;
  --muted: #6b7280;
  --border: #e9ecef;

  --primary: #3f6ad8;
  --primary-600: #2e59d9;
  --success: #3ac47d;
  --warning: #f7b924;
  --danger: #d92550;

  --radius: 12px;
  --shadow-1: 0 10px 30px rgba(82,63,105,.08);
  --ring: 0 0 0 3px rgba(63,106,216,.25);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text);
  background:
    radial-gradient(800px 400px at -10% -10%, rgba(63,106,216,.10), transparent),
    radial-gradient(1000px 600px at 110% 0%, rgba(217,37,80,.06), transparent),
    var(--bg);
}

.container { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner { display:flex; align-items:center; justify-content:space-between; height: 64px; }
.brand { font-weight: 800; color: var(--primary); letter-spacing:.2px; }

/* Hero header */
.hero {
  margin: 24px 0 18px;
  border-radius: 16px;
  padding: 28px;
  background:
    radial-gradient(600px 260px at 20% -30%, rgba(63,106,216,.20), transparent),
    linear-gradient(135deg, #edf2ff 0%, #f5f7ff 100%);
  border: 1px solid #eef2ff;
  box-shadow: var(--shadow-1);
}
.hero h1 { margin: 0 0 6px; font-size: 2rem; letter-spacing: -.02em; }
.subtitle { margin: 0; color: var(--muted); }

main { margin: 24px 0 40px; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-1);
}
.card + .card { margin-top: 16px; }
.card h2 { margin: 0 0 14px; font-size: 1.35rem; }
.lead { color: var(--muted); margin-bottom: 14px; }

/* Forms */
.form-group { margin-bottom: 16px; }
label { display:block; font-weight:600; margin-bottom:8px; }
textarea,
input[type="text"] {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fcfcfe;
  color: var(--text);
  outline: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  resize: vertical;
}
textarea:focus,
input[type="text"]:focus { border-color: #c7d2fe; box-shadow: var(--ring); background: #fff; }
textarea:disabled,
input[type="text"]:disabled { background: #f3f4f6; color:#64748b; }
.help-text { margin-top:6px; color: var(--muted); font-size: .9rem; }

/* Buttons */
.btn {
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px; padding: 10px 16px; border-radius: 10px;
  font-weight:600; letter-spacing:.01em; color:#fff; cursor:pointer;
  border:1px solid rgba(0,0,0,.04);
  background: linear-gradient(180deg, var(--primary), var(--primary-600));
  box-shadow: 0 8px 18px rgba(63,106,216,.25), inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .08s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.04); box-shadow: 0 12px 26px rgba(63,106,216,.32); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity:.6; cursor:not-allowed; }

.btn-primary { background: linear-gradient(180deg, var(--primary), var(--primary-600)); }
.btn-secondary { background: linear-gradient(180deg, #64748b, #475569); }
.btn-copy { background: linear-gradient(180deg, var(--success), #2ebf6a); }
.btn-large { padding: 12px 18px; font-size: 1rem; }

/* Url box */
.url-box { display:flex; align-items:center; gap:12px; background:#f8fafc; border:1px solid var(--border); padding:12px; border-radius: 10px; }
.url-input { flex:1; min-width: 280px; background: transparent; border:none; outline:none; color:inherit; }

/* Info / Warning */
.info-box, .warning-box { margin-top:16px; padding:14px 16px; border-radius: 10px; border:1px solid transparent; }
.info-box { background:#eff6ff; border-color:#bfdbfe; }
.warning-box { background:#fff7ed; border-color:#fed7aa; }

/* Alerts */
.alert { padding:12px 14px; border-radius:10px; margin-bottom:12px; border:1px solid transparent; }
.alert-warning { background:#fff7ed; border-color:#fdba74; }
.alert-info { background:#eff6ff; border-color:#93c5fd; }
.alert-error { background:#fee2e2; border-color:#fca5a5; }

/* Secret view */
.secret-box { display:flex; flex-direction:column; gap:12px; }
.secret-content { min-height: 220px; }

/* Actions */
.actions { margin-top: 24px; text-align:center; }

/* Footer */
footer { text-align:center; color:#475569; font-size:.95rem; padding: 22px 0 34px; }
footer strong { display:block; color:#1f2937; margin-bottom: 6px; }

/* States */
.success { border-top: 4px solid var(--success); }
.warning { border-top: 4px solid #f59e0b; }
.error { border-top: 4px solid var(--danger); }

/* Countdown */
#countdown { font-weight:700; color:#b91c1c; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 0%,100%{ opacity:1 } 50%{ opacity:.6 } }

/* Responsive */
@media (max-width: 640px) {
  .navbar-inner { height: 56px; }
  .hero { padding: 20px; }
  .hero h1 { font-size: 1.6rem; }
  .card { padding: 18px; }
  .url-box { flex-direction: column; align-items: stretch; }
}

