/* ==========================================================================
   Sklep - style aplikacji (zwykly CSS, bez builda / Tailwind / Vite)
   Odtwarza klasy narzedziowe uzywane w szablonach Blade.
   ========================================================================== */

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

/* --- Reset / preflight ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; }
body { margin: 0; line-height: inherit; font-family: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; margin: 0; }
p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: inherit; }
img, svg, video, canvas { display: block; max-width: 100%; }
button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }
hr { border: 0; border-top: 1px solid #e2e8f0; }

/* --- Pola formularzy (zamiennik @tailwindcss/forms) ----------------------- */
[type='text'], [type='email'], [type='password'], [type='number'],
[type='search'], [type='tel'], [type='url'], [type='date'], select, textarea {
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5rem;
    color: #0f172a;
}
select { -webkit-appearance: auto; appearance: auto; }
textarea { resize: vertical; }
[type='text']:focus, [type='email']:focus, [type='password']:focus, [type='number']:focus,
[type='search']:focus, [type='tel']:focus, [type='url']:focus, [type='date']:focus,
select:focus, textarea:focus { outline: 2px solid transparent; outline-offset: 2px; }
[type='checkbox'], [type='radio'] { width: 1rem; height: 1rem; accent-color: #4f46e5; }
::placeholder { color: #94a3b8; opacity: 1; }

/* --- Layout / display ----------------------------------------------------- */
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0; }

.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }

/* --- Position ------------------------------------------------------------- */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.inset-0 { inset: 0; }
.inset-y-0 { top: 0; bottom: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.-right-2 { right: -0.5rem; }
.-top-2 { top: -0.5rem; }

.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }

/* --- Sizing --------------------------------------------------------------- */
.h-4 { height: 1rem; } .h-5 { height: 1.25rem; } .h-6 { height: 1.5rem; }
.h-8 { height: 2rem; } .h-9 { height: 2.25rem; } .h-10 { height: 2.5rem; }
.h-14 { height: 3.5rem; } .h-16 { height: 4rem; } .h-20 { height: 5rem; }
.h-24 { height: 6rem; } .h-full { height: 100%; }

.w-4 { width: 1rem; } .w-5 { width: 1.25rem; } .w-6 { width: 1.5rem; }
.w-8 { width: 2rem; } .w-9 { width: 2.25rem; } .w-10 { width: 2.5rem; }
.w-14 { width: 3.5rem; } .w-16 { width: 4rem; } .w-20 { width: 5rem; }
.w-24 { width: 6rem; } .w-48 { width: 12rem; } .w-64 { width: 16rem; }
.w-full { width: 100%; }

.min-w-5 { min-width: 1.25rem; }
.min-w-full { min-width: 100%; }
.min-h-screen { min-height: 100vh; }

.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }

.aspect-square { aspect-ratio: 1 / 1; }
.object-cover { object-fit: cover; }
.overflow-hidden { overflow: hidden; }

/* --- Spacing: padding ----------------------------------------------------- */
.p-2 { padding: 0.5rem; } .p-4 { padding: 1rem; } .p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; } .p-8 { padding: 2rem; } .p-12 { padding: 3rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.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; }

.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pb-16 { padding-bottom: 4rem; }

/* --- Spacing: margin ------------------------------------------------------ */
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-auto { margin-left: auto; }
.mt-auto { margin-top: auto; }
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }
.mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }

/* --- space-y / divide ----------------------------------------------------- */
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.divide-y > * + * { border-top-width: 1px; border-top-style: solid; }
.divide-slate-100 > * + * { border-color: #f1f5f9; }
.divide-slate-200 > * + * { border-color: #e2e8f0; }

/* --- Typography ----------------------------------------------------------- */
.font-sans { font-family: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.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; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.leading-relaxed { line-height: 1.625; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }
.whitespace-pre-line { white-space: pre-line; }
.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }

/* --- Text colors ---------------------------------------------------------- */
.text-white { color: #fff; }
.text-slate-200 { color: #e2e8f0; } .text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; } .text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; } .text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; } .text-slate-900 { color: #0f172a; }
.text-indigo-400 { color: #818cf8; } .text-indigo-600 { color: #4f46e5; } .text-indigo-700 { color: #4338ca; }
.text-emerald-600 { color: #059669; } .text-emerald-700 { color: #047857; } .text-emerald-800 { color: #065f46; }
.text-red-600 { color: #dc2626; } .text-red-700 { color: #b91c1c; } .text-red-800 { color: #991b1b; }
.text-amber-700 { color: #b45309; }

/* --- Backgrounds ---------------------------------------------------------- */
.bg-transparent { background-color: transparent; }
.bg-white { background-color: #fff; }
.bg-white\/90 { background-color: rgba(255, 255, 255, 0.9); }
.bg-slate-50 { background-color: #f8fafc; } .bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-900 { background-color: #0f172a; }
.bg-slate-900\/50 { background-color: rgba(15, 23, 42, 0.5); }
.bg-indigo-50 { background-color: #eef2ff; }
.bg-indigo-600 { background-color: #4f46e5; }
.bg-emerald-50 { background-color: #ecfdf5; } .bg-emerald-100 { background-color: #d1fae5; }
.bg-red-50 { background-color: #fef2f2; } .bg-red-600 { background-color: #dc2626; }
.bg-amber-50 { background-color: #fffbeb; }

/* --- Borders -------------------------------------------------------------- */
.border { border-width: 1px; border-style: solid; border-color: #e2e8f0; }
.border-0 { border-width: 0; }
.border-t { border-top-width: 1px; border-top-style: solid; border-color: #e2e8f0; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; border-color: #e2e8f0; }
.border-r { border-right-width: 1px; border-right-style: solid; border-color: #e2e8f0; }
.border-dashed { border-style: dashed; }
.border-slate-200 { border-color: #e2e8f0; } .border-slate-300 { border-color: #cbd5e1; }
.border-slate-700 { border-color: #334155; }
.border-emerald-200 { border-color: #a7f3d0; }
.border-red-200 { border-color: #fecaca; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* --- Effects -------------------------------------------------------------- */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.backdrop-blur { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* --- Transforms / transitions -------------------------------------------- */
.transform { transform: translateX(0); }
.translate-x-0 { transform: translateX(0); }
.-translate-x-full { transform: translateX(-100%); }
.transition { transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform; 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; }
.duration-300 { transition-duration: 300ms; }

/* --- Hover states --------------------------------------------------------- */
.hover\:bg-indigo-500:hover { background-color: #6366f1; }
.hover\:bg-red-500:hover { background-color: #ef4444; }
.hover\:bg-red-50:hover { background-color: #fef2f2; }
.hover\:bg-slate-50:hover { background-color: #f8fafc; }
.hover\:bg-slate-100:hover { background-color: #f1f5f9; }
.hover\:bg-slate-800:hover { background-color: #1e293b; }
.hover\:border-indigo-300:hover { border-color: #a5b4fc; }
.hover\:text-indigo-500:hover { color: #6366f1; }
.hover\:text-red-600:hover { color: #dc2626; }
.hover\:text-slate-600:hover { color: #475569; }
.hover\:text-slate-700:hover { color: #334155; }
.hover\:text-slate-900:hover { color: #0f172a; }
.hover\:underline:hover { text-decoration: underline; }
.hover\:shadow-sm:hover { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }

/* --- Group hover ---------------------------------------------------------- */
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }

/* --- Focus states --------------------------------------------------------- */
.focus\:border-indigo-500:focus { border-color: #6366f1; }
.focus\:border-red-500:focus { border-color: #ef4444; }
.focus\:ring-0:focus { box-shadow: none; }
.focus\:ring-indigo-500:focus { box-shadow: 0 0 0 1px #6366f1; }
.focus\:ring-red-500:focus { box-shadow: 0 0 0 1px #ef4444; }

/* --- Disabled states ------------------------------------------------------ */
.disabled\:bg-slate-300:disabled { background-color: #cbd5e1; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }

/* --- File input button ---------------------------------------------------- */
.file\:mr-4::file-selector-button { margin-right: 1rem; }
.file\:rounded-lg::file-selector-button { border-radius: 0.5rem; }
.file\:border-0::file-selector-button { border-width: 0; }
.file\:bg-indigo-50::file-selector-button { background-color: #eef2ff; }
.file\:px-4::file-selector-button { padding-left: 1rem; padding-right: 1rem; }
.file\:py-2::file-selector-button { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.file\:text-sm::file-selector-button { font-size: 0.875rem; line-height: 1.25rem; }
.file\:font-medium::file-selector-button { font-weight: 500; }
.file\:text-indigo-700::file-selector-button { color: #4338ca; }
.hover\:file\:bg-indigo-100:hover::file-selector-button { background-color: #e0e7ff; }

/* --- Responsive: sm (>= 640px) ------------------------------------------- */
@media (min-width: 640px) {
    .sm\:inline { display: inline; }
    .sm\:p-6 { padding: 1.5rem; }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:text-5xl { font-size: 3rem; line-height: 1; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sm\:col-span-2 { grid-column: span 2 / span 2; }
}

/* --- Responsive: md (>= 768px) ------------------------------------------- */
@media (min-width: 768px) {
    .md\:flex { display: flex; }
}

/* --- Responsive: lg (>= 1024px) ------------------------------------------ */
@media (min-width: 1024px) {
    .lg\:hidden { display: none; }
    .lg\:p-8 { padding: 2rem; }
    .lg\:pl-64 { padding-left: 16rem; }
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
    .lg\:translate-x-0 { transform: translateX(0); }
    .lg\:col-span-1 { grid-column: span 1 / span 1; }
    .lg\:col-span-2 { grid-column: span 2 / span 2; }
    .lg\:col-span-3 { grid-column: span 3 / span 3; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
