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

:root{
  --background: 0 0% 100%;
  --foreground: 215 16% 42%;
  --card: 0 0% 100%;
  --card-foreground: 215 16% 42%;
  --popover: 0 0% 100%;
  --popover-foreground: 215 16% 42%;
  --primary: 213 89% 58%;
  --primary-foreground: 0 0% 100%;
  --secondary: 24 95% 53%;
  --secondary-foreground: 0 0% 100%;
  --muted: 220 14% 96%;
  --muted-foreground: 215 14% 48%;
  --accent: 213 89% 58%;
  --accent-foreground: 215 16% 24%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --border: 220 13% 90%;
  --input: 220 13% 90%;
  --ring: 213 89% 58%;
  --radius: 0.75rem;
  --shadow-card: 0 8px 24px rgba(15,23,42,.08);
  --shadow-card-hover: 0 14px 32px rgba(15,23,42,.12);
}


*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

/* shadcn-like token classes */
.bg-background{ background: hsl(var(--background)); }
.bg-card{ background: hsl(var(--card)); }
.text-foreground{ color: hsl(var(--foreground)); }
.text-card-foreground{ color: hsl(var(--card-foreground)); }
.text-muted-foreground{ color: hsl(var(--muted-foreground)); }
.bg-muted{ background: hsl(var(--muted)); }
.border-border{ border-color: hsl(var(--border)); }
.text-primary{ color: hsl(var(--primary)); }
.text-secondary{ color: hsl(var(--secondary)); }
.text-primary-foreground{ color: hsl(var(--primary-foreground)); }
.text-secondary-foreground{ color: hsl(var(--secondary-foreground)); }

/* extras */
.gradient-brand{
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
}
.gradient-brand-text{
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}
.shadow-card{ box-shadow: var(--shadow-card); }
.shadow-card-hover{ box-shadow: var(--shadow-card-hover); }
.rounded-xl{ border-radius: 1rem; }
.rounded-lg{ border-radius: 0.75rem; }

.container{
  width:100%;
  margin-left:auto;
  margin-right:auto;
  padding-left:1rem;
  padding-right:1rem;
}
@media (min-width:640px){ .container{ max-width:640px; } }
@media (min-width:768px){ .container{ max-width:768px; } }
@media (min-width:1024px){ .container{ max-width:1024px; } }
@media (min-width:1280px){ .container{ max-width:1280px; } }

/* simple fade-in */
@keyframes fadeIn { from { opacity:0; transform: translateY(6px);} to { opacity:1; transform: translateY(0);} }
.animate-fade-in{ animation: fadeIn .35s ease-out both; }

/* forms */
.input{
  width:100%;
  padding:.6rem .75rem;
  border: 2px solid hsl(var(--border));
  border-radius: .75rem;
  background: white;
  outline: none;
}
.input:focus{
  border-color: hsl(var(--secondary));
  box-shadow: 0 0 0 3px rgba(0,0,0,.05);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding:.6rem .85rem;
  border-radius:.75rem;
  font-weight:600;
  border: 2px solid transparent;
  text-decoration:none;
  cursor:pointer;
  user-select:none;
}
.btn-outline{
  background: transparent;
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}
.btn-outline-secondary{
  background: transparent;
  border-color: hsl(var(--secondary));
  color: hsl(var(--secondary));
}
.btn-outline-secondary:hover{ background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.btn-ghost{ background: transparent; border-color: transparent; }
.btn-ghost:hover{ background: rgba(0,0,0,.06); }
.btn-primary{
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
  color: hsl(var(--primary-foreground));
}
.badge{
  display:inline-flex;
  align-items:center;
  border-radius:.5rem;
  padding:.15rem .5rem;
  font-size:.75rem;
  font-weight:700;
}
.badge-primary{ background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.badge-muted{ background: hsl(var(--muted)); color: hsl(var(--foreground)); }

a{ color: inherit; }


/* Subtle React-like motion */
.js-reveal{opacity:0; transform: translateY(10px);}
.js-reveal.is-in{opacity:1; transform: translateY(0); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1);} 
.hover-lift{transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;}
.hover-lift:hover{transform: translateY(-3px);}

@keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
.floaty{animation: floaty 6s ease-in-out infinite;}


.badge-success{ background:#e8f7ee; color:#166534; }
.badge-warning{ background:#fff7e6; color:#9a6700; }
.card{ background:hsl(var(--card)); border-radius:1rem; box-shadow:var(--shadow-card); }
.table th,.table td{ padding:.75rem; }
.pill{ display:inline-flex; align-items:center; border-radius:999px; padding:.18rem .55rem; font-size:.75rem; font-weight:700; }
.pill-success{ background:#e8f7ee; color:#166534; }
.pill-warning{ background:#fff7e6; color:#9a6700; }
.pill-brand{ background:rgba(14,116,144,.12); color:hsl(var(--secondary)); }
.pill-muted{ background:hsl(var(--muted)); color:hsl(var(--foreground)); }
.btn-xs{ padding:.35rem .65rem; font-size:.85rem; }
.nav-link{ text-decoration:none; font-weight:600; }
.gallery-slide{ display:none; }
.gallery-slide.is-active{ display:block; }
.gallery-thumb{ border:0; background:transparent; padding:0; border-radius:.75rem; cursor:pointer; opacity:.7; }
.gallery-thumb.is-active{ opacity:1; box-shadow:0 0 0 3px rgba(21,128,61,.25); }
.gallery-nav{ position:absolute; top:50%; transform:translateY(-50%); border:0; width:42px; height:42px; border-radius:999px; background:rgba(0,0,0,.45); color:#fff; font-size:1.6rem; cursor:pointer; }
.gallery-prev{ left:12px; }
.gallery-next{ right:12px; }

.stat-card{ background:hsl(var(--card)); border-radius:1rem; box-shadow:var(--shadow-card); padding:1.1rem; }
.kpi-label{ color:hsl(var(--muted-foreground)); font-size:.85rem; }
.kpi-value{ font-size:1.9rem; font-weight:900; margin-top:.2rem; }
.progress{ width:100%; height:10px; border-radius:999px; background:hsl(var(--muted)); overflow:hidden; }
.progress > span{ display:block; height:100%; background:linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary))); }
.risk-high{ background:#fee2e2; color:#991b1b; }
.risk-medium{ background:#fff7e6; color:#9a6700; }
.risk-low{ background:#e8f7ee; color:#166534; }
.metric-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:1rem; }


/* admin UI refresh */
.page-hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
  margin-bottom:1.25rem;
}
.page-hero h1{ margin:0; }
.page-hero p{ margin:.4rem 0 0; }

.admin-shell-nav{
  display:flex;
  gap:.75rem;
  flex-wrap:wrap;
  margin: 0 0 1.25rem 0;
  padding: .85rem;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.88));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
}
.admin-tab{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  padding:.72rem .95rem;
  border-radius:.85rem;
  border:1px solid hsl(var(--border));
  text-decoration:none;
  color:hsl(var(--foreground));
  background:#fff;
  font-weight:600;
}
.admin-tab:hover{
  transform:translateY(-1px);
  box-shadow: var(--shadow-card);
}
.admin-tab.is-active{
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
  color:white;
  border-color: transparent;
}
.admin-grid{
  display:grid;
  grid-template-columns: 280px minmax(0,1fr);
  gap:1.25rem;
}
@media (max-width: 980px){
  .admin-grid{ grid-template-columns:1fr; }
}
.admin-sidebar-card,
.admin-main-card{
  background:#fff;
  border:1px solid hsl(var(--border));
  border-radius:1rem;
  box-shadow: var(--shadow-card);
}
.admin-sidebar-card{ padding:1rem; }
.admin-main-card{ padding:1.25rem; }
.admin-side-list{
  display:grid;
  gap:.8rem;
}
.admin-side-list .item{
  padding:.85rem .9rem;
  border-radius:.85rem;
  background:hsl(var(--muted));
}
.admin-side-list .label{
  font-size:.78rem;
  color:hsl(var(--muted-foreground));
  margin-bottom:.25rem;
}
.section-card{
  background:#fff;
  border:1px solid hsl(var(--border));
  border-radius:1rem;
  box-shadow: var(--shadow-card);
  padding:1rem;
}
.section-card h2{ margin-top:0; }
.section-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:1rem;
}
@media (max-width: 768px){
  .section-grid{ grid-template-columns:1fr; }
}
.sticky-card{
  position:sticky;
  top:88px;
}


/* small follow-up polish */
.admin-shell-nav .w-4,
.btn .w-4{
  flex: 0 0 auto;
}
.page-hero{
  margin-bottom: 1rem;
}


/* Africars sky theme */
.gradient-brand,
.progress > span,
.admin-tab.is-active{
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}
.btn-primary{
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  color:#fff;
}
.btn-primary:hover{ box-shadow: 0 16px 30px rgba(249,115,22,.24); }
.gradient-brand-text{
  color:#4b5563;
  background:none;
  -webkit-background-clip:initial;
  background-clip:initial;
}
.site-header{
  background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
  color:#4b5563;
  box-shadow: 0 10px 30px rgba(59,130,246,.18);
  border-bottom: 1px solid rgba(59,130,246,.28);
}
.site-header a,
.site-header .btn-ghost,
.site-header .btn-outline,
.site-header .site-tagline,
.site-header .site-brand{ color:#4b5563; }
.site-logo{ width:auto; height:72px; max-width:min(320px,50vw); object-fit:contain; display:block; }
.site-brand{ text-decoration:none; gap:.35rem; }
.site-tagline{ color:#6b7280; font-size:.82rem; margin-top:.15rem; font-weight:600; }
.site-header .input{ background:#fff; color:#4b5563; border-color:rgba(255,255,255,.7); }
.site-header .btn-outline{ background:rgba(255,255,255,.7); border-color:rgba(255,255,255,.9); color:#4b5563; }
.site-header .btn-outline:hover{ background:#fff; box-shadow:none; }
.site-header .btn-ghost:hover{ background:rgba(255,255,255,.24); }
.africar-hero{
  position:relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.68) 0%, rgba(239,246,255,.50) 50%, rgba(219,234,254,.62) 100%),
    url('./hero-bg.jpg') center right/cover no-repeat;
  overflow:hidden;
}
.africar-hero::before,
.africar-hero::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  height:1px;
  background:rgba(59,130,246,.22);
}
.africar-hero::before{ top:0; }
.africar-hero::after{ bottom:0; }
.africar-hero-copy{ color:#6b7280; max-width:850px; margin-left:auto; margin-right:auto; }
.africar-hero .container{ position:relative; z-index:1; }
.africar-search-panel{
  background:#fff;
  padding:1rem;
  border-radius:1rem;
  box-shadow: 0 18px 40px rgba(15,23,42,.10);
  border:1px solid rgba(148,163,184,.18);
  margin-bottom:1.5rem;
}
.africar-search-panel .input,
.africar-search-panel select{
  background:#fff;
  border-color:#d1d5db;
  color:#4b5563;
}
.africar-condition-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.65rem;
  flex-wrap:wrap;
  margin: 0 auto 1rem;
}
.africar-condition-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:.75rem 1.15rem;
  border-radius:999px;
  text-decoration:none;
  font-weight:800;
  color:#4b5563;
  background:#f8fafc;
  border:1px solid rgba(148,163,184,.22);
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
}
.africar-condition-pill.is-active{
  background:#dbeafe;
  color:#4b5563;
  border-color:#60a5fa;
}
.africar-condition-pill:hover{ transform:translateY(-1px); }
.africar-search-panel .btn-primary{
  background:#f97316;
  color:#fff;
}
.africar-action-strip{
  display:flex;
  justify-content:center;
  gap:1rem;
  flex-wrap:wrap;
  position:relative;
  z-index:1;
  margin: 1.5rem 0 0;
}
.africar-action-item{
  display:inline-flex;
  align-items:center;
  gap:.85rem;
  padding: .95rem 1.25rem;
  border-radius:999px;
  text-decoration:none;
  color:#4b5563;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(96,165,250,.38);
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 28px rgba(15,23,42,.08);
}
.africar-action-item i{ color:#f97316; }
.africar-action-item:hover{ background:#fff; transform:translateY(-1px); }
.africar-hero-stats{
  position:relative;
  z-index:1;
  margin-bottom: 1rem;
  color:#4b5563;
}
.hero-stat{ min-width: 170px; padding: .5rem .75rem; }
.hero-stat span:last-child{ display:block; margin-top:.2rem; }
.footer-brand{
  background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
  color:#4b5563;
}
.footer-logo{ width:auto; max-width:min(320px,70vw); max-height:110px; height:auto; display:block; }
.footer-brand-row{ display:flex; align-items:center; }
.footer-copy,.footer-meta{ color:#4b5563; }
.footer-brand h3, .footer-brand li, .footer-brand span, .footer-brand p, .footer-brand a{ color:#4b5563; }
.hero-chip{
  display:inline-flex;
  align-items:center;
  padding:.4rem .75rem;
  border-radius:999px;
  background:rgba(255,255,255,.7);
  color:#4b5563;
  font-size:.8rem;
  font-weight:700;
}
.badge-condition{ color:#fff; }
.badge-new{ background:#3b82f6; }
.badge-used{ background:#94a3b8; }
@media (max-width: 768px){
  .africar-condition-toggle{ width:100%; }
  .africar-condition-pill{ flex:1 1 100%; }
  .site-logo{ height:58px; max-width:70vw; }
  .site-header-search{ display:none !important; }
  .africar-hero::after{ bottom:0; }
}
