/* RFC – unified design system v2 */

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

:root {
  --bg:          #060504;
  --bg-soft:     #0c0a08;
  --panel:       #100e0b;

  /* Cognac amber – teplá, hluboká, ne žlutá */
  --gold:        #c08a2e;
  --gold-light:  #d9a44e;
  --gold-soft:   #8a6020;
  --gold-glow:   rgba(192,138,46,.18);

  --text:        #f0e6d2;
  --text-soft:   #c4aa82;
  --muted:       #7a6648;

  --line:        rgba(192,138,46,.14);
  --line-strong: rgba(192,138,46,.28);

  --shadow:      0 8px 32px rgba(0,0,0,.55);
  --shadow-glow: 0 0 24px rgba(192,138,46,.12);

  --radius:      20px;
  --radius-sm:   12px;
  --radius-xs:   8px;
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 50% at 50% -5%, rgba(192,138,46,.11) 0%, transparent 65%),
    radial-gradient(ellipse 50% 25% at 15% 100%, rgba(120,70,10,.07) 0%, transparent 55%),
    #040302;
}

a { color: inherit; text-decoration: none; }

/* ── Card – levý amber accent (inspirace BotC) ───────────
   Silná levá čára = první věc co oko zaregistruje.
   Horní border jemně zlatý, pravý a spodní skoro neviditelné.        */
.card {
  background: linear-gradient(160deg, #181309 0%, #0e0b07 60%, #0b0906 100%);
  border-top:    1px solid rgba(192,138,46,.35);
  border-right:  1px solid rgba(192,138,46,.10);
  border-bottom: 1px solid rgba(192,138,46,.08);
  border-left:   3px solid rgba(192,138,46,.72);
  border-radius: var(--radius);
  box-shadow:
    0 10px 36px rgba(0,0,0,.65),
    inset 0 1px 0 rgba(192,138,46,.08),
    -6px 0 24px rgba(192,138,46,.06);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .03em;
  cursor: pointer;
  transition: all .25s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* Jemný lesk při hoveru na outline tlačítku */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(192,138,46,.10), transparent 60%);
  opacity: 0;
  transition: opacity .25s ease;
}
.btn:hover::before { opacity: 1; }
.btn:hover {
  background: rgba(192,138,46,.08);
  box-shadow: 0 0 18px rgba(192,138,46,.20), inset 0 1px 0 rgba(192,138,46,.15);
  transform: translateY(-1px);
}

/* Solid – gradient výplň jako kousek rumu */
.btn-solid {
  background: linear-gradient(135deg, #b87e28 0%, #d4984a 50%, #a87020 100%);
  border-color: transparent;
  color: #0f0800;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(192,138,46,.28), inset 0 1px 0 rgba(255,255,255,.10);
}
.btn-solid::before { display: none; }
.btn-solid:hover {
  background: linear-gradient(135deg, #c88c30 0%, #e0a858 50%, #b87828 100%);
  box-shadow: 0 6px 24px rgba(192,138,46,.38), inset 0 1px 0 rgba(255,255,255,.12);
  transform: translateY(-2px);
  color: #0f0800;
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text-soft);
}
.btn-ghost::before { display: none; }
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(192,138,46,.06);
  box-shadow: none;
}

.btn-danger {
  border-color: rgba(220,80,80,.4);
  color: #ff9b9b;
}
.btn-danger::before { display: none; }
.btn-danger:hover {
  background: rgba(220,80,80,.10);
  color: #ff6b6b;
  box-shadow: none;
  transform: none;
}

.btn-sm {
  width: auto;
  padding: 7px 14px;
  font-size: .85rem;
  border-radius: var(--radius-xs);
}

/* ── Forms ────────────────────────────────────────────────── */
label {
  display: block;
  margin: 12px 0 5px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: .02em;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line-strong);
  background: rgba(15,12,8,.8);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  outline: none;
  transition: .2s ease;
  -webkit-appearance: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(192,138,46,.12);
  background: rgba(20,16,10,.9);
}

input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { resize: vertical; min-height: 88px; }

/* ── Messages ────────────────────────────────────────────── */
.msg {
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  line-height: 1.45;
  margin-bottom: 14px;
}
.msg-error {
  background: rgba(200,60,60,.09);
  border: 1px solid rgba(200,60,60,.30);
  color: #ffb3b3;
}
.msg-success {
  background: rgba(80,200,120,.09);
  border: 1px solid rgba(80,200,120,.28);
  color: #a8ffc4;
}

/* ── Chip ─────────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(192,138,46,.06);
  color: var(--text-soft);
  font-size: .80rem;
  font-weight: 500;
  letter-spacing: .02em;
}

/* ── Status badges ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.badge-pending  { background: rgba(192,138,46,.12); color: var(--gold-light); border: 1px solid var(--line-strong); }
.badge-approved { background: rgba(80,200,120,.10); color: #a8ffc4;           border: 1px solid rgba(80,200,120,.28); }
.badge-rejected { background: rgba(200,60,60,.10);  color: #ffb3b3;           border: 1px solid rgba(200,60,60,.28); }

/* ── Icon button ─────────────────────────────────────────── */
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(192,138,46,.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  cursor: pointer;
  transition: .2s ease;
  flex: 0 0 auto;
}
.icon-btn:hover {
  transform: translateY(-2px);
  background: rgba(192,138,46,.10);
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(192,138,46,.14);
}

/* ── Bottom nav ──────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  /* Gradient-border top edge */
  background:
    linear-gradient(#090704, #090704) padding-box,
    linear-gradient(90deg,
      transparent 0%,
      rgba(192,138,46,.25) 30%,
      rgba(192,138,46,.30) 50%,
      rgba(192,138,46,.25) 70%,
      transparent 100%
    ) border-box;
  border-top: 1px solid transparent;
  backdrop-filter: blur(16px) saturate(1.2);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
}

.bottom-nav-inner {
  max-width: 540px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.nav-item {
  min-height: 54px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--muted);
  transition: .2s ease;
}
.nav-item i    { font-size: 1.1rem; }
.nav-item span { font-size: .72rem; font-weight: 500; letter-spacing: .02em; line-height: 1; }

.nav-item.active {
  color: var(--gold-light);
  background: rgba(192,138,46,.08);
  border: 1px solid rgba(192,138,46,.16);
}
.nav-item:hover:not(.active) {
  color: var(--gold);
  transform: translateY(-2px);
}

.notif-bell-fixed {
  position: fixed !important;
  top: 10px;
  right: 10px;
  z-index: 40;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(192,138,46,.35);
  background: rgba(10,8,5,.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  transition: .2s ease;
  text-decoration: none;
  box-shadow: 0 0 14px rgba(192,138,46,.12);
}
.notif-bell-fixed:hover, .notif-bell-fixed.active {
  color: var(--gold-light);
  border-color: rgba(192,138,46,.6);
  background: rgba(192,138,46,.10);
  box-shadow: 0 0 20px rgba(192,138,46,.22);
}

.nav-bell-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.notif-badge {
  position: absolute; top: -6px; right: -9px;
  background: #e03c3c; color: #fff;
  font-size: .6rem; font-weight: 800;
  min-width: 16px; height: 16px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; line-height: 1;
  border: 1.5px solid #040302;
  pointer-events: none;
}

/* ── Input range (slider) ────────────────────────────────── */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #2a2016;
  border: none;
  padding: 0;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4984a, #b87828);
  border: 2px solid rgba(255,255,255,.1);
  box-shadow: 0 2px 8px rgba(192,138,46,.35);
  cursor: pointer;
}
input[type="range"]:focus { box-shadow: none; border-color: transparent; }

/* ── Number input ───────────────────────────────────────── */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }
