/* =====================================================================
   LowFuel — static utility stylesheet
   Hand-built to cover exactly the Tailwind-style classes used across
   index.php, status.php, and admin.php. Replaces the cdn.tailwindcss.com
   Play CDN script, which requires 'unsafe-eval' at runtime to generate
   styles — this file needs no JavaScript, no CSP allowance, and no
   build step to update; edit it directly like any other CSS file.
   build: 2026-08-21-a
   ===================================================================== */

/* ---------------------------------------------------------------
   Minimal preflight (Tailwind's browser-normalising reset)
   --------------------------------------------------------------- */
*, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: #e5e7eb; }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; }
body { margin: 0; line-height: inherit; }
h1, h2, h3 { font-size: inherit; font-weight: inherit; margin: 0; }
a { color: inherit; text-decoration: inherit; }
button, input, select { font-family: inherit; font-size: 100%; font-weight: inherit; line-height: inherit; color: inherit; margin: 0; padding: 0; }
button { text-transform: none; background-color: transparent; background-image: none; cursor: pointer; }
input::placeholder { opacity: 1; color: #9ca3af; }
img, svg { display: block; vertical-align: middle; }
::-webkit-outer-spin-button, ::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------------------------------------------------------------
   Brand colour — user-adjustable via the swatch buttons, which set
   --brand-color inline. Falls back to indigo if unset.
   --------------------------------------------------------------- */
:root { --brand-color: #6366f1; }
.text-brand { color: var(--brand-color, #6366f1); }
.bg-brand { background-color: var(--brand-color, #6366f1); }
.hover\:text-brand:hover { color: var(--brand-color, #6366f1); }
.shadow-brand\/20 { --tw-shadow-color: color-mix(in srgb, var(--brand-color, #6366f1) 20%, transparent); box-shadow: var(--tw-shadow); }
.shadow-brand\/30 { box-shadow: 0 10px 15px -3px color-mix(in srgb, var(--brand-color, #6366f1) 30%, transparent); }
.hover\:underline:hover { text-decoration: underline; }

/* ---------------------------------------------------------------
   Layout / display
   --------------------------------------------------------------- */
.block { display: block; }
.hidden { display: none; }
.flex { display: flex; }
.grid { display: grid; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.top-6 { top: 1.5rem; }
.right-4 { right: 1rem; }
.right-6 { right: 1.5rem; }
.z-50 { z-index: 50; }
.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.w-3 { width: 0.75rem; }
.w-5 { width: 1.25rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.h-3 { height: 0.75rem; }
.h-5 { height: 1.25rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-lg { max-width: 32rem; }
.max-w-3xl { max-width: 48rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.pb-10 { padding-bottom: 2.5rem; }
.pt-8 { padding-top: 2rem; }
.max-w-sm { max-width: 24rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Flex / grid */
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.group { }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-x-8 { column-gap: 2rem; }
.gap-y-4 { row-gap: 1rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* ---------------------------------------------------------------
   Spacing
   --------------------------------------------------------------- */
.p-1 { padding: 0.25rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-4 { padding-top: 1rem; }
.pt-10 { padding-top: 2.5rem; }
.pb-20 { padding-bottom: 5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-20 { margin-top: 5rem; }

/* ---------------------------------------------------------------
   Borders / radius
   --------------------------------------------------------------- */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.rounded-\[2\.5rem\] { border-radius: 2.5rem; }

.border-white { border-color: #fff; }
.border-white\/5 { border-color: rgb(255 255 255 / 0.05); }
.border-white\/10 { border-color: rgb(255 255 255 / 0.1); }
.border-black\/5 { border-color: rgb(0 0 0 / 0.05); }
.border-slate-800 { border-color: #1e293b; }
.border-red-600\/30 { border-color: rgb(220 38 38 / 0.3); }
.border-red-900\/20 { border-color: rgb(127 29 29 / 0.2); }
.border-red-900\/30 { border-color: rgb(127 29 29 / 0.3); }
.border-emerald-500\/10 { border-color: rgb(16 185 129 / 0.1); }
.border-rose-500\/10 { border-color: rgb(244 63 94 / 0.1); }
.border-purple-500\/10 { border-color: rgb(168 85 247 / 0.1); }
.dark\:border-white\/5.dark, .dark .dark\:border-white\/5 { border-color: rgb(255 255 255 / 0.05); }
.dark\:border-slate-800.dark, .dark .dark\:border-slate-800 { border-color: #1e293b; }

/* ---------------------------------------------------------------
   Background colours
   --------------------------------------------------------------- */
.bg-white { background-color: #fff; }
.bg-white\/5 { background-color: rgb(255 255 255 / 0.05); }
.bg-white\/50 { background-color: rgb(255 255 255 / 0.5); }
.bg-black\/30 { background-color: rgb(0 0 0 / 0.3); }
.bg-black\/40 { background-color: rgb(0 0 0 / 0.4); }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-200 { background-color: #e2e8f0; }
.bg-slate-900 { background-color: #0f172a; }
.bg-slate-50\/50 { background-color: rgb(248 250 252 / 0.5); }
.bg-slate-800\/10 { background-color: rgb(30 41 59 / 0.1); }
.bg-red-500 { background-color: #ef4444; }
.bg-red-600 { background-color: #dc2626; }
.bg-red-600\/20 { background-color: rgb(220 38 38 / 0.2); }
.bg-indigo-500\/10 { background-color: rgb(99 102 241 / 0.1); }
.bg-emerald-500 { background-color: #10b981; }
.bg-emerald-500\/5 { background-color: rgb(16 185 129 / 0.05); }
.bg-amber-500 { background-color: #f59e0b; }
.bg-rose-500\/5 { background-color: rgb(244 63 94 / 0.05); }
.bg-purple-500\/5 { background-color: rgb(168 85 247 / 0.05); }
.bg-\[\#6366f1\] { background-color: #6366f1; }
.bg-\[\#06b6d4\] { background-color: #06b6d4; }
.bg-\[\#ef4444\] { background-color: #ef4444; }
.bg-\[\#d946ef\] { background-color: #d946ef; }
.bg-\[\#f59e0b\] { background-color: #f59e0b; }
.dark .dark\:bg-slate-800 { background-color: #1e293b; }
.dark .dark\:bg-slate-900\/50 { background-color: rgb(15 23 42 / 0.5); }
.dark .dark\:bg-slate-950 { background-color: #020617; }
.dark .dark\:bg-white\/5 { background-color: rgb(255 255 255 / 0.05); }
.dark .dark\:bg-black\/20 { background-color: rgb(0 0 0 / 0.2); }
.dark .dark\:bg-emerald-500\/10 { background-color: rgb(16 185 129 / 0.1); }
.dark .dark\:bg-rose-500\/10 { background-color: rgb(244 63 94 / 0.1); }
.dark .dark\:bg-purple-500\/10 { background-color: rgb(168 85 247 / 0.1); }

.hover\:bg-red-700:hover { background-color: #b91c1c; }
.hover\:bg-white\/10:hover { background-color: rgb(255 255 255 / 0.1); }

/* ---------------------------------------------------------------
   Text colours
   --------------------------------------------------------------- */
.text-white { color: #fff; }
.text-slate-100 { color: #f1f5f9; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-900 { color: #0f172a; }
.text-red-400 { color: #f87171; }
.text-red-500 { color: #ef4444; }
.text-red-500\/60 { color: rgb(239 68 68 / 0.6); }
.text-amber-500 { color: #f59e0b; }
.text-emerald-400 { color: #34d399; }
.text-emerald-500 { color: #10b981; }
.text-emerald-600 { color: #059669; }
.text-rose-600 { color: #e11d48; }
.text-purple-600 { color: #9333ea; }
.text-indigo-500 { color: #6366f1; }
.dark .dark\:text-white { color: #fff; }
.dark .dark\:text-slate-100 { color: #f1f5f9; }
.dark .dark\:text-emerald-400 { color: #34d399; }
.dark .dark\:text-rose-400 { color: #fb7185; }
.dark .dark\:text-purple-400 { color: #c084fc; }

.hover\:text-brand:hover { color: var(--brand-color, #6366f1); }
.hover\:text-indigo-500:hover { color: #6366f1; }
.hover\:text-red-500:hover { color: #ef4444; }
.focus\:border-red-500:focus { border-color: #ef4444; }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }

/* ---------------------------------------------------------------
   Typography
   --------------------------------------------------------------- */
.text-\[8px\] { font-size: 8px; }
.text-\[9px\] { font-size: 9px; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.text-center { text-align: center; }
.leading-none { line-height: 1; }
.leading-relaxed { line-height: 1.625; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }

/* ---------------------------------------------------------------
   Effects / transitions
   --------------------------------------------------------------- */
.opacity-10 { opacity: 0.1; }
.opacity-30 { opacity: 0.3; }
.opacity-40 { opacity: 0.4; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-80 { opacity: 0.8; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.shadow-black\/5 { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.05); }
.shadow-red-600\/20 { box-shadow: 0 10px 15px -3px rgb(220 38 38 / 0.2); }
.shadow-red-600\/40 { box-shadow: 0 10px 15px -3px rgb(220 38 38 / 0.4); }
.shadow-red-900\/20 { box-shadow: 0 10px 15px -3px rgb(127 29 29 / 0.2); }
.shadow-\[0_0_15px_rgba\(16\,185\,129\,0\.5\)\] { box-shadow: 0 0 15px rgba(16,185,129,0.5); }
.shadow-\[0_0_15px_rgba\(245\,158\,11\,0\.5\)\] { box-shadow: 0 0 15px rgba(245,158,11,0.5); }
.backdrop-blur-md { backdrop-filter: blur(12px); }
.cursor-pointer { cursor: pointer; }
.animate-pulse { animation: lf-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes lf-pulse { 50% { opacity: .5; } }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.hover\:scale-110:hover { transform: scale(1.1); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:rotate-12 { transform: rotate(12deg); }
.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem); }

/* ---------------------------------------------------------------
   Component classes (defined directly in index.php's own <style>,
   kept here too for pages that reuse the same names without redefining)
   --------------------------------------------------------------- */
.fuel-card { background: #fff; border: 1px solid rgba(0,0,0,0.08); }
.dark .fuel-card { background: rgba(30, 41, 59, 0.6); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1); }
.status-card { background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); }
.dark .status-card { background: rgba(30, 41, 59, 0.4); border: 1px solid rgba(255,255,255,0.05); }
.text-muted { color: #64748b; }
.dark .text-muted { color: #94a3b8; }
.admin-card { background: rgba(30, 41, 59, 0.4); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.05); }
.status-dot { width: 8px; height: 8px; border-radius: 99px; transition: all 0.3s ease; }
.glow-red { box-shadow: 0 0 12px rgba(239, 68, 68, 0.5); }
.glow-green { box-shadow: 0 0 12px rgba(16, 185, 129, 0.5); }
.glass { background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(12px); border: 1px solid rgba(220, 38, 38, 0.2); }

/* ---------------------------------------------------------------
   Responsive (md: >=768px, lg: >=1024px)
   --------------------------------------------------------------- */
/* ---------------------------------------------------------------
   Station map (Leaflet)
   --------------------------------------------------------------- */
#stationMap { height: 340px; width: 100%; background: #e2e8f0; z-index: 0; }
/* Dark mode: invert the light (Positron) tiles rather than loading an
   actual "dark" tile set. Real dark tiles are authored close to black
   with little contrast left to recover; inverting a light map (dark
   text/roads on white) reliably produces a legible dark map instead.
   hue-rotate corrects the colour shift inversion causes (water/parks
   would otherwise come out an odd orange/purple). */
.dark #stationMap .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.95) contrast(0.9); }
@media (max-width: 640px) {
    #stationMap { height: 260px; }
}
.leaflet-popup-content-wrapper { border-radius: 14px; }
.dark .leaflet-popup-content-wrapper,
.dark .leaflet-popup-tip { background: #1e293b; color: #f1f5f9; }
.leaflet-container { font-family: 'Plus Jakarta Sans', sans-serif; }
.user-location-tag {
    background: #0f172a !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35) !important;
    font-weight: 800 !important;
    font-size: 10px !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px !important;
    border-radius: 8px !important;
}
.user-location-tag::before { display: none; }

@media (min-width: 768px) {
    .md\:flex-row { flex-direction: row; }
    .md\:col-span-3 { grid-column: span 3 / span 3; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:p-10 { padding: 2.5rem; }
}
@media (min-width: 1024px) {
    .lg\:col-span-2 { grid-column: span 2 / span 2; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
