/*
 * App styles that Tailwind utility classes don't cover.
 * Always link local CSS/JS through asset() so a changed file gets a new
 * ?v= URL and browsers refetch it without a hard refresh.
 *
 * Theme layer: the palette, radius and shadows live in the tailwind.config in
 * layouts/header.php. This file adds the polish that utilities can't express
 * (gradients, focus rings, hover lift) so every page gets it without edits.
 */

body { font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif; }
::selection { background: #B0EA55; color: #07130E; }

@media print { body { background: #fff !important; } }

/* Primary buttons (bg-brand-600): deep melon gradient with a soft glow */
body .bg-brand-600 {
    background-image: linear-gradient(180deg, #14A467 0%, #0C8550 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 20px -10px rgba(12, 133, 80, .75);
    transition: filter .15s, transform .15s, box-shadow .15s;
}
body .bg-brand-600:hover { filter: brightness(.93); }
body .bg-brand-600:active { transform: translateY(1px); }

/* Secondary (outlined) buttons */
body a.border-slate-300,
body button.border-slate-300 {
    background-color: #fff;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(7, 19, 14, .06);
    transition: background-color .15s, box-shadow .15s;
}
body a.border-slate-300:hover,
body button.border-slate-300:hover { background-color: #F5F8F6; }

/* Inputs */
body input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
body select,
body textarea {
    border-radius: .75rem;
    border-color: #C6D2CB;
    background-color: #fff;
    transition: border-color .15s, box-shadow .15s;
}
body input[readonly] { background-color: #F5F8F6; }
body input:focus,
body select:focus,
body textarea:focus {
    outline: none;
    border-color: #1FAD69;
    box-shadow: 0 0 0 4px rgba(31, 173, 105, .16);
}
body input[type=checkbox],
body input[type=radio] { accent-color: #0C8550; }

/* Cards that are links lift a little on hover */
body a.shadow-sm { transition: transform .15s, box-shadow .15s, background-color .15s; }
body a.shadow-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(7, 19, 14, .06), 0 20px 34px -14px rgba(7, 19, 14, .24);
}

/* Type */
body main h1.text-xl {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 800;
    letter-spacing: -.025em;
    color: #0B1B14;
}
body main h2 { letter-spacing: -.01em; }
body span.rounded-full { font-weight: 600; }

/* Sidebar (see layouts/_shell.php) */
.sidebar {
    background: #fff;
    border-right: 1px solid #DDE5E0;
}
.sb-backdrop {
    display: none;
    position: fixed;
    inset: 3.5rem 0 0 0;
    background: rgba(7, 19, 14, .35);
    backdrop-filter: blur(2px);
    z-index: 20;
}
.sb-backdrop.is-open { display: block; }

@media (max-width: 1023.98px) {
    .sidebar { transform: translateX(-100%); transition: transform .22s ease; }
    .sidebar.is-open { transform: none; box-shadow: 0 0 48px rgba(7, 19, 14, .22); }
}
@media (min-width: 1024px) {
    .sb-backdrop { display: none !important; }
}

/* Number input without the browser spinner (the order page has its own + / - buttons) */
.no-spin::-webkit-outer-spin-button,
.no-spin::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.no-spin { -moz-appearance: textfield; }
