/* public/assets/css/app.css */

/* ===== Reset & Base ===== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: #0b1220;
  color: #0f172a;
}

/* Subtle background gradient */
.bg {
  min-height: 100%;
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(99,102,241,0.20), transparent 55%),
    radial-gradient(900px 500px at 90% 20%, rgba(16,185,129,0.16), transparent 55%),
    radial-gradient(900px 700px at 50% 95%, rgba(236,72,153,0.10), transparent 60%),
    #0b1220;
  padding: 28px 16px 48px;
}

/* ===== Container ===== */
.container {
  max-width: 980px;
  margin: 0 auto;
}

/* ===== Topbar ===== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e5e7eb;
}
.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(99,102,241,0.9), rgba(16,185,129,0.85));
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.brand-title {
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand-sub {
  display: block;
  font-size: 12px;
  opacity: 0.75;
  margin-top: 1px;
}

/* ===== Card ===== */
.card {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(148,163,184,0.25);
  border-radius: 18px;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.25),
    0 1px 0 rgba(255,255,255,0.6) inset;
  overflow: hidden;
}
.card-header {
  padding: 18px 18px 0;
}
.card-body {
  padding: 18px;
}
.card-footer {
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(148,163,184,0.25);
  background: rgba(248,250,252,0.6);
}

/* ===== Typography ===== */
h1 { font-size: 22px; margin: 0 0 6px; color: #0f172a; }
h2 { font-size: 18px; margin: 0 0 8px; color: #0f172a; }
p { margin: 0 0 12px; color: #334155; line-height: 1.55; }
.small { font-size: 12px; color: #64748b; }
.muted { color: #64748b; }

/* ===== Grid ===== */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
}

/* ===== Form ===== */
.form-group { margin-bottom: 12px; }
label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 6px;
}
.input, .select {
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.55);
  background: #ffffff;
  outline: none;
  font-size: 14px;
  color: #0f172a;
  transition: border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}
.input:focus, .select:focus {
  border-color: rgba(99,102,241,0.85);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.15);
}
.input::placeholder { color: #94a3b8; }

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(248,250,252,0.8);
}
.checkbox input { margin-top: 3px; }
.checkbox span { font-size: 13px; color: #334155; line-height: 1.45; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .05s ease, box-shadow .15s ease, opacity .15s ease;
  user-select: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #22c55e);
  color: #fff;
  box-shadow: 0 14px 30px rgba(99,102,241,0.25);
}
.btn-primary:hover { opacity: 0.95; }

.btn-secondary {
  background: #0f172a;
  color: #fff;
  box-shadow: 0 14px 30px rgba(15,23,42,0.20);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(148,163,184,0.55);
  color: #0f172a;
}
.btn-danger {
  background: #ef4444;
  color: #fff;
  box-shadow: 0 14px 30px rgba(239,68,68,0.20);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===== Alerts ===== */
.alert {
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(248,250,252,0.8);
  color: #0f172a;
  margin-bottom: 12px;
}
.alert-error {
  border-color: rgba(239,68,68,0.35);
  background: rgba(254,242,242,0.95);
  color: #7f1d1d;
}
.alert-success {
  border-color: rgba(34,197,94,0.35);
  background: rgba(240,253,244,0.95);
  color: #14532d;
}

/* ===== Voucher code block ===== */
.code-box {
  display: inline-block;
  padding: 16px 16px;
  border-radius: 16px;
  border: 2px dashed rgba(15,23,42,0.55);
  background: rgba(255,255,255,0.7);
}
.code-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
}
.code-value {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #0f172a;
}

/* ===== Key-value rows ===== */
.kv {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px 14px;
}
@media (max-width: 760px) {
  .kv { grid-template-columns: 1fr; }
}
.k {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.v {
  font-size: 14px;
  color: #0f172a;
  font-weight: 700;
}

/* ===== Footer link ===== */
.link {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 600;
}
.link:hover { text-decoration: underline; }
