/* ===========================================================================
   SKILLMARQ — Digital Garage portal styles
   On-brand with the public site (index.php / booking.php / dokumenty.html):
   light theme, Inter + Space Grotesk, #1f1e27 accent, 12px radius.
   =========================================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #fbfbfb;
  --bg-light: #f5f5f7;
  --bg-card: #ffffff;
  --border: #e5e5e5;
  --border-hover: #cccccc;
  --text: #1f1e27;
  --text-muted: #555555;
  --text-dim: #999999;
  --accent: #1f1e27;
  --accent-hover: #333245;
  --highlight-dim: rgba(31,30,39,0.08);
  --green: #16a34a;
  --green-dim: rgba(22,163,74,0.10);
  --amber: #b45309;
  --amber-dim: rgba(180,83,9,0.10);
  --red: #dc2626;
  --red-dim: rgba(220,38,38,0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; }
.heading, h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.02em; }

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.section { padding: 32px 0; }
.stack > * + * { margin-top: 16px; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.text-accent { color: var(--accent); font-weight: 600; }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.center { text-align: center; }

/* Top bar */
.topbar { background: rgba(251,251,251,0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand .kicker { font-size: 0.68rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--text-dim); }
.brand .brand-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.05rem; }
.topbar-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Titles */
.page-title { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; margin-bottom: 6px; }
.page-subtitle { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 28px; }
.section-title { font-size: 1.15rem; font-weight: 600; margin-bottom: 16px; }

/* Cards */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; font-weight: 600; }
.card-hover:hover { border-color: var(--border-hover); box-shadow: 0 8px 30px rgba(0,0,0,0.07); transform: translateY(-2px); transition: all var(--transition); }

/* Buttons (pill, uppercase — exactly like the public site) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 28px; font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid transparent; border-radius: 50px; cursor: pointer; transition: all var(--transition); text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(31,30,39,0.25); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-hover); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-danger { background: var(--red-dim); color: var(--red); border-color: rgba(220,38,38,0.25); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 0.7rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Forms */
.field { margin-bottom: 16px; }
.label { display: block; font-size: 0.8rem; font-weight: 500; color: var(--text-muted); margin-bottom: 8px; letter-spacing: 0.03em; }
.input, .select, .textarea { width: 100%; padding: 13px 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.9rem; outline: none; transition: border-color var(--transition); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); }
.input::placeholder, .textarea::placeholder { color: var(--text-dim); }
.textarea { min-height: 90px; resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* Grids / tiles */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Badges / status pills */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 50px; border: 1px solid var(--border); background: var(--bg-light); color: var(--text-muted); }
.badge-green { background: var(--green-dim); color: var(--green); border-color: rgba(22,163,74,0.22); }
.badge-amber { background: var(--amber-dim); color: var(--amber); border-color: rgba(180,83,9,0.22); }
.badge-red { background: var(--red-dim); color: var(--red); border-color: rgba(220,38,38,0.22); }

/* Alerts */
.alert { border-radius: var(--radius-sm); padding: 12px 16px; font-size: 0.88rem; border: 1px solid var(--border); margin-bottom: 16px; }
.alert-error { background: var(--red-dim); color: var(--red); border-color: rgba(220,38,38,0.22); }
.alert-success { background: var(--green-dim); color: var(--green); border-color: rgba(22,163,74,0.22); }
.alert-info { background: var(--bg-light); color: var(--text-muted); }

/* Segmented tabs (login/register, klient/partner) */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg a { display: block; text-align: center; padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.85rem; text-decoration: none; border: 1px solid var(--border); color: var(--text-muted); background: var(--bg-card); transition: all var(--transition); }
.seg a:hover { border-color: var(--border-hover); }
.seg a.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Auth pages */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 560px; }
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-head .kicker { font-size: 0.7rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--text-dim); }
.auth-head h1 { font-size: 2rem; font-weight: 700; margin-top: 8px; }
.auth-head p { color: var(--text-muted); margin-top: 6px; }

/* Empty state */
.empty { text-align: center; padding: 40px 20px; color: var(--text-dim); }
.empty-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }

/* Simple table */
.tbl { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.tbl th { text-align: left; font-weight: 600; color: var(--text-dim); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.tbl td { padding: 12px; border-bottom: 1px solid var(--border); }
.tbl tr:last-child td { border-bottom: none; }

/* Spacing helpers */
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}
.mb-1{margin-top:0;margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
