/*
 * sloth-theme.css - the visual theme of the whole app, built from DESIGN.md ("Sauce Labs": a neon-lit command center on obsidian glass).
 *
 * How it works: the views are written with Tailwind utility classes (from the CDN). Instead of editing every view, this file re-themes the
 * few recurring patterns - primary button, outlined button, inputs, cards, links, banners - and layouts/app.blade.php supplies the shell:
 * a dark obsidian page, a dark navigation bar and ONE mint-frost "surface" card that holds the page content (the design's "light card
 * floating on the dark canvas"). It is loaded AFTER the Tailwind CDN script, and the rules below use !important where a Tailwind utility
 * of equal strength would otherwise win. Nothing here changes behaviour; delete the <link> in the layout to get the old look back.
 *
 * Rules of the design that this file keeps: ONE green (Neon Pulse) for primary actions / active states / the running-visit banner,
 * pill buttons (56 px), 20 px cards, flat surfaces (the only shadow is rgba(0,0,0,.04)), body weight 400 and headings at most 500,
 * dark and light alternating (obsidian canvas, mint surface, white panels), no gradients.
 *
 * Sections: 1 tokens, 2 page + typography, 3 navigation, 4 surface + footer, 5 buttons, 6 forms, 7 cards/tables/links, 8 banners + status, 9 phones.
 */
/* 1. Tokens (names from DESIGN.md) */
:root{
  --obsidian:#132322;--abyss:#0e1a19;--charcoal:#070f0f;--mint:#edf7f5;--white:#ffffff;
  --fog:#d0d3d3;--stone:#b2b6b4;--slate:#828786;--graphite:#424f4f;
  --neon:#3ddc91;--neon-hover:#33c985;--whisper:#97ddbc;--yellow:#ffcd48;
  --link:#0b7a50;--muted:#5d6968;   /* darker than the design's Slate/Neon so small text and links stay readable on mint (WCAG AA) */
  --font:"Aeonik","Inter","Geist",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
/* 2. Page canvas and type: body weight 400, tight tracking, headings at weight 500 (never bolder). */
html,body{font-family:var(--font)!important;-webkit-font-smoothing:antialiased}
body.theme-body{background:var(--obsidian)!important;color:var(--white);letter-spacing:-.005em;font-weight:400}
.surface h1,.surface h2,.surface h3{font-weight:500;letter-spacing:-.01em;color:var(--obsidian)}
.surface h1{font-size:2rem;line-height:1.2}
.font-semibold,.font-bold{font-weight:500!important}
.surface .text-slate-800,.surface .text-slate-900,.surface .text-slate-700{color:var(--obsidian)!important}
.surface .text-slate-600,.surface .text-slate-500{color:var(--muted)!important}
.surface .text-slate-400{color:var(--slate)!important}

/* 3. Navigation: full-width obsidian bar, white links, the current page as a neon pill (the design's active tab). */
.topnav{background:var(--obsidian);color:var(--white)}
.topnav .brandname{color:var(--white)}
.topnav a.navlink,.topnav button.navlink{color:rgba(255,255,255,.72);font-size:.875rem;padding:.35rem .6rem;border-radius:9999px;line-height:1.3}
.topnav a.navlink:hover,.topnav button.navlink:hover{color:var(--white);background:rgba(255,255,255,.08)}
.topnav a.navlink.is-active{background:var(--neon);color:var(--obsidian)}
.topnav .navmeta,.topnav .navmeta a,.topnav .navmeta button{color:rgba(255,255,255,.62)}
.topnav .navmeta a:hover,.topnav .navmeta button:hover{color:var(--white)}
.topnav .navsignout{border:1.5px solid rgba(255,255,255,.7);color:var(--white);border-radius:9999px;padding:.3rem 1rem}
.topnav .navsignout:hover{background:var(--white);color:var(--obsidian)}
.topnav .navmenu{background:var(--abyss);border:1px solid rgba(255,255,255,.1);border-radius:20px;box-shadow:none}
.topnav .navmenu a{color:rgba(255,255,255,.85)}
.topnav .navmenu a:hover{background:rgba(255,255,255,.08)}
.topnav .navplatform{color:var(--whisper)!important}
.topnav .navhamburger{color:var(--white)}
.mobilemenu{background:var(--abyss);border-top:1px solid rgba(255,255,255,.1);color:rgba(255,255,255,.85)}
.mobilemenu a.is-active{color:var(--neon)}
.mobilemenu .mobilefoot{border-color:rgba(255,255,255,.12);color:rgba(255,255,255,.6)}

/* 4. The surface: one mint-frost card carries the page content; flat, 32 px corners, the design's only shadow. */
.surface{background:var(--mint);color:var(--obsidian);border-radius:32px;padding:32px;box-shadow:rgba(0,0,0,.04) 1px 0 9px 2px}
.surface-bare{padding:8px 0 24px}
.surface-bare .bg-white{background:var(--mint)!important;border-color:transparent!important;border-radius:32px!important;color:var(--obsidian)}
.surface-bare h1,.surface-bare h2{color:var(--obsidian);font-weight:500}
.surface-bare .bg-blue-600{background:var(--neon)!important;color:var(--obsidian)!important;border-radius:9999px!important}
.surface-bare input:not([type=checkbox]){border-color:var(--stone)!important;border-radius:12px;background:#fff}
.surface-bare a{color:var(--link)}
.surface-bare .text-slate-500,.surface-bare .text-slate-600{color:var(--muted)!important}
.surface-bare .bg-green-50{background:#d9f3e6!important;color:#0b6a43}
.surface-bare .bg-red-50{background:#fbe7e4!important}
.themefoot{color:var(--slate)}
.themefoot a{color:var(--neon);text-decoration:none}
.themefoot a:hover{text-decoration:underline}

/* 5. Buttons: every button is a 56 px pill. Primary = neon with dark text; outlined = obsidian line; dark = obsidian; danger keeps red. */
.surface button.rounded-lg,.surface a.rounded-lg,.surface input[type=submit].rounded-lg,.surface label.rounded-lg.cursor-pointer{border-radius:9999px}
.surface .bg-blue-600,.surface .bg-green-600,.surface .bg-green-700,.surface .bg-emerald-600,.surface .bg-emerald-700,.surface .bg-indigo-600{background:var(--neon)!important;color:var(--obsidian)!important;font-weight:500}
.surface .hover\:bg-blue-700:hover,.surface .hover\:bg-green-700:hover,.surface .hover\:bg-emerald-700:hover,.surface .hover\:bg-indigo-700:hover{background:var(--neon-hover)!important}
.surface .bg-blue-600.text-white,.surface .bg-green-600.text-white,.surface .bg-emerald-600.text-white{color:var(--obsidian)!important}
.surface button.border.border-slate-300,.surface a.border.border-slate-300{border-color:var(--obsidian)!important;border-width:1.5px;color:var(--obsidian)}
.surface button.border.border-slate-300:hover,.surface a.border.border-slate-300:hover{background:var(--obsidian)!important;color:var(--white)!important}
.surface .bg-slate-800,.surface .bg-slate-900,.surface .bg-slate-700{background:var(--obsidian)!important;color:var(--white)!important}
.surface .hover\:bg-slate-900:hover,.surface .hover\:bg-slate-700:hover{background:var(--charcoal)!important}
.surface .bg-red-600,.surface .bg-red-700{background:#b3261e!important;color:var(--white)!important}
button:disabled,.opacity-50{opacity:.5}

/* 6. Forms: calm white fields with stone borders, 12 px corners, a neon focus line. */
.surface input:not([type=checkbox]):not([type=radio]):not([type=file]),.surface select,.surface textarea{border-color:var(--stone)!important;border-radius:12px;background-color:#fff;color:var(--obsidian)}
.surface input:focus,.surface select:focus,.surface textarea:focus{outline:2px solid var(--neon)!important;outline-offset:0;border-color:var(--neon)!important}
.surface input[type=checkbox],.surface input[type=radio]{accent-color:var(--neon)}
.surface input::placeholder,.surface textarea::placeholder{color:var(--slate)}
.surface label{color:var(--obsidian)}

/* 7. Cards, tables, links: white 20 px panels on the mint surface, hairline fog borders, no heavy shadows. */
.surface .rounded-xl{border-radius:20px}
.surface .bg-white{background:#fff}
.surface .border-slate-200,.surface .divide-slate-100>*+*,.surface .divide-slate-200>*+*{border-color:var(--fog)!important}
.surface .bg-slate-50{background:#f5fbf9!important}
.surface .hover\:bg-slate-50:hover{background:#f1f9f6!important}
.surface thead th{color:var(--muted);font-weight:500}
.shadow,.shadow-sm,.shadow-md,.shadow-lg,.shadow-xl{box-shadow:rgba(0,0,0,.04) 1px 0 9px 2px!important}
.surface a.text-blue-600,.surface a.text-blue-700,.surface .text-blue-600,.surface .text-blue-700,.surface .hover\:text-blue-600:hover{color:var(--link)!important}
.surface a.hover\:underline,.surface a.underline{text-underline-offset:3px}
.surface .bg-blue-50,.surface .bg-blue-100{background:#dff3ec!important;color:var(--obsidian)}
.surface .text-blue-800,.surface .text-blue-900{color:var(--obsidian)!important}

/* 8. Banners and status colours: the running-visit banner is the design's neon "announcement bar"; success/warning/error keep their
 *    own semantic tints (a status needs more than one colour), softened to sit well on mint. */
.livebanner{background:var(--neon)!important;color:var(--obsidian)!important}
.surface .bg-green-50,.surface .bg-green-100{background:#d9f3e6!important}
.surface .text-green-700,.surface .text-green-800{color:#0b6a43!important}
.surface .border-green-200{border-color:#a8dfc3!important}
.surface .bg-amber-50,.surface .bg-amber-100{background:#fff3cf!important}

/* 9. Phones: tighter surface so the content has room. */
@media (max-width:767px){.surface{border-radius:24px;padding:16px}.surface h1{font-size:1.6rem}}
