/* =====================================================================
   Transport Connecting – app design system (dopuna Tailwind-u)
   Brend: primarna #032751, duboka #011B45, akcent #E4171B, siva #F4F6F8
   ===================================================================== */

:root {
  --tc-blue: #032751;
  --tc-deep: #011B45;
  --tc-red: #E4171B;
  --tc-gray: #F4F6F8;
  --tc-mist: #E8EDF3;
  --tc-sky: #EAF0FA;
  --tc-radius: 16px;
  --tc-shadow: 0 1px 2px rgba(3,39,81,.04), 0 8px 24px -12px rgba(3,39,81,.18);
  --tc-shadow-hover: 0 2px 4px rgba(3,39,81,.06), 0 16px 40px -16px rgba(3,39,81,.28);
}

html { scroll-behavior: smooth; }
body { font-feature-settings: "cv02", "cv03", "cv04", "cv11"; }
::selection { background: rgba(3,39,81,.15); }

.sidebar-scroll::-webkit-scrollbar { width: 6px; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 6px; }
.sidebar-scroll::-webkit-scrollbar-track { background: transparent; }

/* ------------------------------------------------------------------ */
/* KARTICE                                                              */
/* ------------------------------------------------------------------ */
.card {
  background: #fff;
  border: 1px solid var(--tc-mist);
  border-radius: var(--tc-radius);
  box-shadow: var(--tc-shadow);
}
.card-hover { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--tc-shadow-hover); border-color: #d9e1ec; }
.card-head { padding: 18px 22px; border-bottom: 1px solid var(--tc-mist); display: flex; align-items: center; gap: 12px; }
.card-body { padding: 22px; }
.card-title { font-family: Manrope, Inter, sans-serif; font-weight: 700; font-size: 15px; color: var(--tc-blue); letter-spacing: -.01em; }

.stat {
  background: #fff; border: 1px solid var(--tc-mist); border-radius: var(--tc-radius);
  box-shadow: var(--tc-shadow); padding: 20px 22px; position: relative; overflow: hidden;
}
.stat::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(3,39,81,.06), transparent 70%);
}
.stat-label { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #64748b; }
.stat-value { font-family: Manrope, Inter, sans-serif; font-weight: 800; font-size: 30px; color: var(--tc-blue); line-height: 1.1; margin-top: 6px; letter-spacing: -.02em; }
.stat-hint { font-size: 12px; color: #94a3b8; margin-top: 6px; }
.stat-accent { border-left: 4px solid var(--tc-red); }

/* ------------------------------------------------------------------ */
/* DUGMAD                                                               */
/* ------------------------------------------------------------------ */
.btn-primary, .btn-danger, .btn-ghost, .btn-outline, .btn-success, .btn-soft {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; line-height: 1.2;
  transition: all .18s ease; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--tc-blue); color: #fff; box-shadow: 0 6px 16px -8px rgba(3,39,81,.6); }
.btn-primary:hover { background: var(--tc-deep); transform: translateY(-1px); box-shadow: 0 10px 20px -10px rgba(3,39,81,.7); }
.btn-primary:active { transform: translateY(0); }
.btn-danger { background: var(--tc-red); color: #fff; box-shadow: 0 6px 16px -8px rgba(228,23,27,.6); }
.btn-danger:hover { background: #c31216; transform: translateY(-1px); }
.btn-success { background: #059669; color: #fff; box-shadow: 0 6px 16px -8px rgba(5,150,105,.6); }
.btn-success:hover { background: #047857; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #475569; }
.btn-ghost:hover { background: var(--tc-gray); color: var(--tc-blue); }
.btn-outline { background: #fff; color: var(--tc-blue); border-color: #cbd5e1; }
.btn-outline:hover { border-color: var(--tc-blue); background: var(--tc-sky); }
.btn-soft { background: var(--tc-sky); color: var(--tc-blue); }
.btn-soft:hover { background: #dbe5f5; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn-xs { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }
button:disabled, .btn-disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ------------------------------------------------------------------ */
/* FORME                                                                */
/* ------------------------------------------------------------------ */
.label { display: block; font-size: 12px; font-weight: 600; color: #334155; margin-bottom: 6px; letter-spacing: .01em; }
.label-hint { font-weight: 400; color: #94a3b8; margin-left: 4px; }
.input, .select, .textarea {
  width: 100%; background: #fff; border: 1px solid #d5dde8; border-radius: 12px; padding: 10px 14px; font-size: 14px; color: #0f172a;
  transition: border-color .15s ease, box-shadow .15s ease; outline: none; -webkit-appearance: none; appearance: none;
}
.input:focus, .select:focus, .textarea:focus, textarea.input:focus { border-color: var(--tc-blue); box-shadow: 0 0 0 4px rgba(3,39,81,.08); }
.input::placeholder, .textarea::placeholder { color: #a3aec0; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23475569' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 40px; }
.input-error { border-color: var(--tc-red) !important; }
.field-error { font-size: 12px; color: var(--tc-red); margin-top: 4px; }
.checkbox-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid #d5dde8; border-radius: 12px; font-size: 13px; font-weight: 500; cursor: pointer; background: #fff; transition: all .15s ease; user-select: none; }
.checkbox-chip:hover { border-color: var(--tc-blue); }
.checkbox-chip input { accent-color: var(--tc-blue); width: 16px; height: 16px; }
.checkbox-chip:has(input:checked) { background: var(--tc-sky); border-color: var(--tc-blue); color: var(--tc-blue); }

/* Radio kartice (kategorija / tip vozila) */
.radio-card { position: relative; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; inset: 0; }
.radio-card-body { border: 1.5px solid #d5dde8; border-radius: 14px; padding: 14px; background: #fff; transition: all .18s ease; height: 100%; }
.radio-card:hover .radio-card-body { border-color: #93a4bd; transform: translateY(-1px); }
.radio-card input:checked + .radio-card-body { border-color: var(--tc-blue); background: var(--tc-sky); box-shadow: 0 0 0 4px rgba(3,39,81,.08); }
.radio-card input:focus-visible + .radio-card-body { outline: 2px solid var(--tc-blue); outline-offset: 2px; }

/* ------------------------------------------------------------------ */
/* TABELE                                                               */
/* ------------------------------------------------------------------ */
.table-wrap { overflow-x: auto; border-radius: var(--tc-radius); }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.table thead th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #64748b; padding: 12px 16px; background: #f8fafc; border-bottom: 1px solid var(--tc-mist); white-space: nowrap; }
.table tbody td { padding: 13px 16px; border-bottom: 1px solid var(--tc-mist); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s ease; }
.table tbody tr:hover { background: #fbfcfe; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ */
/* RAZNO                                                                */
/* ------------------------------------------------------------------ */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.divider { height: 1px; background: var(--tc-mist); }
.empty { text-align: center; padding: 48px 24px; color: #94a3b8; }
.empty svg { width: 48px; height: 48px; margin: 0 auto 12px; color: #cbd5e1; }
.empty-title { font-family: Manrope, Inter, sans-serif; font-weight: 700; color: var(--tc-blue); font-size: 15px; margin-bottom: 4px; }

.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--tc-mist); border-radius: 2px; }
.timeline-item { position: relative; padding-bottom: 18px; }
.timeline-item::before { content: ""; position: absolute; left: -22px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--tc-blue); }
.timeline-item.done::before { background: var(--tc-blue); }
.timeline-item.current::before { background: var(--tc-red); border-color: var(--tc-red); box-shadow: 0 0 0 5px rgba(228,23,27,.15); }
.timeline-item:last-child { padding-bottom: 0; }

.steps { display: flex; align-items: center; gap: 0; }
.step { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.step-dot { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: #fff; border: 2px solid #d5dde8; color: #94a3b8; flex-shrink: 0; transition: all .3s ease; }
.step.done .step-dot { background: var(--tc-blue); border-color: var(--tc-blue); color: #fff; }
.step.current .step-dot { border-color: var(--tc-red); color: var(--tc-red); box-shadow: 0 0 0 5px rgba(228,23,27,.12); }
.step-label { font-size: 12px; font-weight: 600; color: #94a3b8; white-space: nowrap; }
.step.done .step-label, .step.current .step-label { color: var(--tc-blue); }
.step-line { flex: 1; height: 2px; background: #d5dde8; margin: 0 10px; min-width: 12px; }
.step.done .step-line { background: var(--tc-blue); }

.progress { height: 6px; border-radius: 6px; background: var(--tc-mist); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 6px; background: var(--tc-blue); width: 0; transition: width .8s cubic-bezier(.22,1,.36,1); }

.countdown { font-variant-numeric: tabular-nums; font-family: Manrope, Inter, sans-serif; font-weight: 800; }
.countdown.urgent { color: var(--tc-red); animation: pulse-red 1.2s ease-in-out infinite; }
@keyframes pulse-red { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

.offer-card { position: relative; border: 1.5px solid var(--tc-mist); border-radius: 18px; background: #fff; padding: 20px; transition: all .22s ease; }
.offer-card:hover { border-color: #b7c5da; box-shadow: var(--tc-shadow-hover); transform: translateY(-2px); }
.offer-card.best { border-color: var(--tc-blue); }
.offer-card .ribbon { position: absolute; top: -10px; left: 18px; background: var(--tc-blue); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.offer-card .ribbon.red { background: var(--tc-red); }

.kbd { font-family: ui-monospace, monospace; font-size: 11px; padding: 2px 6px; border-radius: 6px; background: var(--tc-gray); border: 1px solid #d5dde8; color: #475569; }

.toast { display: flex; align-items: flex-start; gap: 12px; background: #fff; border: 1px solid var(--tc-mist); border-left: 4px solid var(--tc-blue); border-radius: 14px; padding: 14px 16px; box-shadow: var(--tc-shadow-hover); font-size: 13.5px; color: #1e293b; }
.toast.success { border-left-color: #059669; }
.toast.error { border-left-color: var(--tc-red); }
.toast.info { border-left-color: var(--tc-blue); }
.toast.warning { border-left-color: #d97706; }

.modal-panel { transform-origin: center; }
.tab-btn { padding: 9px 14px; font-size: 13px; font-weight: 600; color: #64748b; border-radius: 10px; transition: all .15s ease; white-space: nowrap; }
.tab-btn:hover { color: var(--tc-blue); background: var(--tc-gray); }
.tab-btn.active { background: var(--tc-blue); color: #fff; box-shadow: 0 6px 14px -8px rgba(3,39,81,.6); }

.score-bar { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #64748b; }
.score-bar .bar { flex: 1; height: 5px; border-radius: 5px; background: var(--tc-mist); overflow: hidden; }
.score-bar .bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--tc-blue), #3b6fb6); }

.gsap-card, .gsap-row { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .gsap-card, .gsap-row { opacity: 1; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.auth-bg {
  background: radial-gradient(1200px 600px at 10% -10%, rgba(3,39,81,.12), transparent 60%),
              radial-gradient(800px 500px at 110% 110%, rgba(228,23,27,.08), transparent 60%),
              #F4F6F8;
}
.auth-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(3,39,81,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(3,39,81,.05) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); pointer-events: none; }

@media print {
  aside, header, footer, #toast-root, .no-print { display: none !important; }
  .lg\:pl-72 { padding-left: 0 !important; }
}
