* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0f172a;
  color: #f8fafc;
}

/* --- Auth pages (login, reset password) --- */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.auth-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 40px;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.auth-card h1 {
  font-size: 1.4rem;
  margin: 0 0 24px;
  text-align: center;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: .85rem;
  color: #94a3b8;
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: #f8fafc;
  font-size: .95rem;
}

.field input:focus {
  outline: none;
  border-color: #2563eb;
}

/* Select dropdowny — väčšina prehliadačov renderuje <option> so svetlým
   pozadím a dedeným textom, takže bez tohto je čitateľná len položka pod myšou. */
select {
  color-scheme: dark;
}

select option {
  color: #0f172a;
  background: #fff;
}

.btn {
  width: 100%;
  padding: 11px;
  border-radius: 8px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover { background: #1d4ed8; }

.auth-links {
  margin-top: 16px;
  text-align: center;
  font-size: .85rem;
}

.auth-links a {
  color: #93c5fd;
  text-decoration: none;
}

.auth-links a:hover { text-decoration: underline; }

.alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .85rem;
  margin-bottom: 16px;
}

.alert-error {
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.35);
  color: #fca5a5;
}

.alert-success {
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.35);
  color: #86efac;
}

/* --- App layout --- */
.topbar {
  background: #1e293b;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-logo {
  font-size: 1.3rem;
  line-height: 1;
  text-decoration: none;
}

.company-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #f8fafc;
}

.company-switch select {
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  padding: 6px 10px;
  font-weight: 600;
  font-size: .95rem;
}

.country-badge {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #93c5fd;
  background: rgba(59,130,246,.15);
  border: 1px solid rgba(59,130,246,.35);
  border-radius: 999px;
  padding: 3px 10px;
}

.nav-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: center;
}

.nav-pills a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}

.nav-pills a:hover {
  color: #f8fafc;
  background: rgba(255,255,255,.06);
}

.nav-pills a.active {
  color: #fff;
  background: #2563eb;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-actions a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: .9rem;
}

.topbar-actions a:hover { color: #f8fafc; }

.topbar-actions .icon-link {
  font-size: 1.1rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}

.topbar-actions .icon-link:hover,
.topbar-actions .icon-link.active {
  background: #2563eb;
  color: #fff;
}

.topbar-actions .user-name {
  color: #94a3b8;
  font-size: .9rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 24px;
}
