/*
 * ui-premium.css — Africars Enterprise v3
 * Micro-interaction layer; intentionally thin.
 * All heavy token work is in app.css.
 */

html { scroll-behavior: smooth; }
body { text-rendering: optimizeLegibility; }

/* Scrollbar */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(37,99,235,.25); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(37,99,235,.45); }

/* Selection */
::selection { background: rgba(37,99,235,.18); color: inherit; }

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--clr-cobalt-400, #60a5fa);
  outline-offset: 2px;
}

/* Premium hover lift for launch/feature cards */
.launch-card, .feature-box {
  transition: transform 220ms cubic-bezier(.22,.68,0,1.2), box-shadow 220ms ease;
}
.launch-card:hover, .feature-box:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Image hover subtle zoom (already in app.css for cards, this covers other places) */
figure img, .img-hover { transition: transform .55s ease; }
figure:hover img, .img-hover:hover { transform: scale(1.03); }

/* Skeleton shimmer for loading states */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e8eef5 50%, #f1f5f9 75%);
  background-size: 200% auto;
  animation: shimmer 1.4s linear infinite;
  border-radius: var(--radius-md, .875rem);
}
@keyframes shimmer { to { background-position: -200% center; } }

/* Smooth table wrap border */
.table-wrap { border: 1px solid rgba(203,213,225,.5); }

/* Admin action buttons in tables */
.table .btn-xs + .btn-xs { margin-left: .3rem; }

/* Status dot */
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: .35rem;
  vertical-align: middle;
}
.status-dot-green  { background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,.2); }
.status-dot-amber  { background: #f59e0b; box-shadow: 0 0 0 2px rgba(245,158,11,.2); }
.status-dot-red    { background: #ef4444; box-shadow: 0 0 0 2px rgba(239,68,68,.2); }
.status-dot-slate  { background: #94a3b8; }

/* Tooltip utility */
[data-tip] { position: relative; cursor: default; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) scale(.92);
  background: #1e293b;
  color: #fff;
  font-size: .74rem;
  font-weight: 500;
  white-space: nowrap;
  padding: .3rem .65rem;
  border-radius: .45rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 100;
}
[data-tip]:hover::after { opacity: 1; transform: translateX(-50%) scale(1); }

/* Mobile: full-width buttons in certain blocks */
@media (max-width: 640px) {
  .mobile-full-btn .btn { width: 100%; }
}

/* Print cleanup */
@media print {
  .site-header, .footer-brand, .btn, .admin-shell-nav { display: none !important; }
  .admin-main-card, .section-card { box-shadow: none; border: 1px solid #ddd; }
}
