/* analiz.lorry.uz — qo'shimcha stillar (Tailwind CDN ustiga) */

:root { color-scheme: dark; }

html, body { scroll-behavior: smooth; }

/* ---- Scrollbar ---- */
* { scrollbar-width: thin; scrollbar-color: #243049 transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #243049; border-radius: 9999px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: #34405c; background-clip: padding-box; }

/* ---- Aurora glow (login + accents) ---- */
.aurora {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.aurora::before, .aurora::after {
  content: ''; position: absolute; width: 42rem; height: 42rem; border-radius: 9999px;
  filter: blur(120px); opacity: 0.28;
}
.aurora::before { background: #22d3ee; top: -10rem; left: -8rem; }
.aurora::after { background: #a78bfa; bottom: -12rem; right: -8rem; }

/* ---- Card surface ---- */
.card {
  background: linear-gradient(180deg, rgba(26,36,56,0.65), rgba(15,23,42,0.65));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1rem;
  box-shadow: 0 10px 30px -18px rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
}
.card-hover { transition: border-color .2s, transform .2s, box-shadow .2s; }
.card-hover:hover { border-color: rgba(34,211,238,0.25); transform: translateY(-2px); box-shadow: 0 16px 40px -22px rgba(34,211,238,0.35); }

/* ---- KPI accent bar ---- */
.kpi-accent { background: linear-gradient(90deg, #22d3ee, #a78bfa); }

/* ---- Skeleton shimmer ---- */
.skeleton {
  position: relative; overflow: hidden;
  background: rgba(255,255,255,0.04); border-radius: 0.5rem;
}
.skeleton::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  animation: sk-shimmer 1.4s infinite;
}
@keyframes sk-shimmer { 100% { transform: translateX(100%); } }

/* ---- Spinner ---- */
.spinner {
  width: 28px; height: 28px; border-radius: 9999px;
  border: 3px solid rgba(255,255,255,0.1); border-top-color: #22d3ee;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Sticky table head ---- */
.tbl-wrap { overflow: auto; }
.tbl thead th { position: sticky; top: 0; z-index: 5; background: #131c30; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: rgba(34,211,238,0.05); }
.tbl th.sortable { cursor: pointer; user-select: none; }
.tbl th.sortable:hover { color: #22d3ee; }

/* ---- Nav active ---- */
.nav-link.active {
  background: linear-gradient(90deg, rgba(34,211,238,0.16), rgba(167,139,250,0.1));
  color: #e2f7fb;
  box-shadow: inset 2px 0 0 #22d3ee;
}
.nav-link.active .nav-ico { color: #22d3ee; }

/* ---- Toggle ---- */
.toggle { width: 40px; height: 22px; border-radius: 9999px; background: #243049; position: relative; transition: background .2s; }
.toggle.on { background: linear-gradient(90deg, #22d3ee, #34d399); }
.toggle .knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 9999px; background: #fff; transition: transform .2s; }
.toggle.on .knob { transform: translateX(18px); }

/* gauge ring helper handled via conic-gradient inline */
.gauge { background: conic-gradient(var(--c, #22d3ee) calc(var(--p,0)*1%), rgba(255,255,255,0.06) 0); }
