/* ============================================================
   SHARED.CSS — AsistenciaQR v3
   Tema: Industrial / Utilitarian — claro de día, preciso
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  --bg:       #f4f2ee;
  --bg2:      #eceae5;
  --surface:  #ffffff;
  --border:   #d8d4cc;
  --border2:  #c8c3b8;
  --text:     #1a1916;
  --text2:    #7a7670;
  --text3:    #a8a49c;
  --accent:   #1a1916;
  --green:    #1a6b3c;
  --green-bg: #e8f5ee;
  --blue:     #1a3a6b;
  --blue-bg:  #e8eef5;
  --red:      #8b1a1a;
  --red-bg:   #f5e8e8;
  --orange:   #8b5a1a;
  --orange-bg:#f5ede8;
  --mono:     'JetBrains Mono', monospace;
  --display:  'Syne', sans-serif;
  --radius:   12px;
  --shadow:   0 2px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg:0 8px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  --t:        0.2s ease;
}

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

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
.label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text2);
}

.heading {
  font-family: var(--display);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ── Inputs ── */
input, select {
  font-family: var(--display);
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  outline: none;
  transition: border-color var(--t);
  width: 100%;
}

input:focus, select:focus { border-color: var(--text); }
input::placeholder { color: var(--text3); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { background: #333; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border2);
}
.btn-outline:hover { border-color: var(--text); }

.btn-ghost {
  background: transparent;
  color: var(--text2);
  padding: 8px 12px;
}
.btn-ghost:hover { color: var(--text); background: var(--bg2); border-radius: 6px; }

.btn-full { width: 100%; }

.btn-danger {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid rgba(139,26,26,0.2);
}
.btn-danger:hover { background: #f0d8d8; }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 20px;
}

.badge-green  { background: var(--green-bg);  color: var(--green);  border: 1px solid rgba(26,107,60,0.2);  }
.badge-blue   { background: var(--blue-bg);   color: var(--blue);   border: 1px solid rgba(26,58,107,0.2);  }
.badge-red    { background: var(--red-bg);    color: var(--red);    border: 1px solid rgba(139,26,26,0.2);  }
.badge-orange { background: var(--orange-bg); color: var(--orange); border: 1px solid rgba(139,90,26,0.2); }
.badge-gray   { background: var(--bg2);       color: var(--text2);  border: 1px solid var(--border);        }

/* ── Toast ── */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--text);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  padding: 10px 20px;
  border-radius: 8px;
  z-index: 9999;
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
  white-space: nowrap;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  width: 100%;
}

/* ── Utils ── */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-mono { font-family: var(--mono); }
.text-muted { color: var(--text2); }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
