/* ===========================
   LabSpeed — Apple-like UI
   =========================== */

/* ---- Variables ---- */
:root {
  --bg-main: #f5f6f8;
  --bg-card: rgba(255,255,255,0.85);
  --bg-card-solid: #ffffff;

  --text-main: #1d1d1f;
  --text-muted: #6e6e73;

  --accent: #0071e3;
  --accent-hover: #0060c9;

  --border-soft: rgba(0,0,0,0.06);

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;

  --shadow-soft: 0 8px 30px rgba(0,0,0,0.06);
  --shadow-hover: 0 12px 36px rgba(0,0,0,0.08);

  --blur: saturate(180%) blur(14px);
}

/* ---- Reset suave ---- */
html, body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
               "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

/* ===========================
   Cards / Glass
   =========================== */
.glass {
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}

/* ===========================
   Buttons
   =========================== */
.btn,
.btn-xs {
  appearance: none;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  background: rgba(0,0,0,0.04);
  color: var(--text-main);
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
}

.btn:hover,
.btn-xs:hover {
  background: rgba(0,0,0,0.08);
}

.btn-primary {
  appearance: none;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 4px 12px rgba(0,113,227,0.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 18px rgba(0,113,227,0.45);
}

/* ===========================
   Inputs
   =========================== */
.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: #fff;
  font-size: 14px;
  transition: all .2s ease;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,113,227,0.15);
}

/* ===========================
   Tables
   =========================== */
table {
  border-collapse: separate;
  border-spacing: 0;
}

thead th {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding-bottom: 8px;
}

tbody tr {
  transition: background .15s ease;
}

tbody tr:hover {
  background: rgba(0,0,0,0.025);
}

td, th {
  padding: 10px 8px;
}

/* ===========================
   Modals
   =========================== */
#modal, #modalCreateRun {
  backdrop-filter: blur(8px);
}

#modal > div,
#modalCreateRun > div {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
}

/* ===========================
   Links
   =========================== */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
