/* Style aplikacji SRiP - wszystko w jednym pliku, bez bibliotek */


/* ===== base ===== */

/* Podstawowy reset i typografia aplikacji SRiP */

:root {
  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid transparent;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-family: var(--font-sans);
}

body {
  font-family: var(--font-sans);
  color: var(--slate-900);
  background-color: var(--page);
}

h1,
h2,
h3,
h4,
.font-display {
  font-family: var(--font-display);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ol,
ul {
  list-style: none;
}

img,
svg {
  display: block;
  vertical-align: middle;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background-color: transparent;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  cursor: pointer;
}

table {
  border-collapse: collapse;
  text-indent: 0;
}

.border-collapse {
  border-collapse: collapse;
}

.font-mono {
  font-family: var(--font-mono);
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.list-decimal {
  list-style-type: decimal;
}

.list-disc {
  list-style-type: disc;
}

.cursor-zoom-in {
  cursor: zoom-in;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border-width: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}


/* ===== colors ===== */

/* Paleta kolorów, obramowania oraz stany hover / focus / disabled */

/* Wartości kolorów (dla jasnego i ciemnego motywu) są w theme.css. */

/* Tła */
.bg-transparent { background-color: transparent; }
.bg-white { background-color: var(--surface); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/95 { background-color: color-mix(in srgb, var(--surface) 95%, transparent); }
.bg-black { background-color: #000000; }

.bg-slate-50 { background-color: var(--slate-50); }
.bg-slate-50\/50 { background-color: color-mix(in srgb, var(--slate-50) 50%, transparent); }
.bg-slate-50\/70 { background-color: color-mix(in srgb, var(--slate-50) 70%, transparent); }
.bg-slate-100 { background-color: var(--slate-100); }
.bg-slate-200 { background-color: var(--slate-200); }
.bg-slate-900 { background-color: var(--ink); }
.bg-slate-900\/50 { background-color: rgba(15, 23, 42, 0.5); }
.bg-slate-900\/55 { background-color: rgba(15, 23, 42, 0.55); }
.bg-slate-900\/60 { background-color: rgba(15, 23, 42, 0.6); }
.bg-slate-950 { background-color: #020617; }
.bg-slate-950\/80 { background-color: rgba(2, 6, 23, 0.8); }
.bg-slate-950\/85 { background-color: rgba(2, 6, 23, 0.85); }

.bg-blue-50 { background-color: var(--blue-50); }
.bg-blue-50\/70 { background-color: color-mix(in srgb, var(--blue-50) 70%, transparent); }
.bg-blue-700 { background-color: var(--primary); }

.bg-emerald-50 { background-color: var(--emerald-50); }
.bg-emerald-50\/70 { background-color: color-mix(in srgb, var(--emerald-50) 70%, transparent); }

.bg-amber-50 { background-color: var(--amber-50); }
.bg-amber-700 { background-color: var(--warn-solid); }

.bg-red-50 { background-color: var(--red-50); }
.bg-red-50\/70 { background-color: color-mix(in srgb, var(--red-50) 70%, transparent); }
.bg-red-700 { background-color: var(--danger-solid); }

/* Kolory tekstu */
.text-white { color: #ffffff; }
.text-slate-300 { color: var(--slate-300); }
.text-slate-400 { color: var(--slate-400); }
.text-slate-500 { color: var(--slate-500); }
.text-slate-600 { color: var(--slate-600); }
.text-slate-700 { color: var(--slate-700); }
.text-slate-800 { color: var(--slate-800); }
.text-slate-900 { color: var(--slate-900); }

.text-blue-600 { color: var(--blue-600); }
.text-blue-700 { color: var(--blue-700); }
.text-blue-900 { color: var(--blue-900); }

.text-emerald-600 { color: var(--emerald-600); }
.text-emerald-700 { color: var(--emerald-700); }
.text-emerald-800 { color: var(--emerald-800); }
.text-emerald-900 { color: var(--emerald-900); }

.text-amber-600 { color: var(--amber-600); }
.text-amber-700 { color: var(--amber-700); }
.text-amber-800 { color: var(--amber-800); }
.text-amber-900 { color: var(--amber-900); }

.text-red-600 { color: var(--red-600); }
.text-red-700 { color: var(--red-700); }
.text-red-800 { color: var(--red-800); }
.text-red-900 { color: var(--red-900); }

/* Obramowania i linie podziału */
.border { border-style: solid; border-width: 1px; }
.border-t { border-top-style: solid; border-top-width: 1px; }
.border-r { border-right-style: solid; border-right-width: 1px; }
.border-b { border-bottom-style: solid; border-bottom-width: 1px; }

.border-slate-100 { border-color: var(--slate-100); }
.border-slate-200 { border-color: var(--slate-200); }
.border-slate-300 { border-color: var(--slate-300); }
.border-slate-900 { border-color: var(--ink); }
.border-blue-200 { border-color: var(--blue-200); }
.border-emerald-200 { border-color: var(--emerald-200); }
.border-amber-200 { border-color: var(--amber-200); }
.border-red-200 { border-color: var(--red-200); }

.divide-y > :not(:last-child) {
  border-bottom-style: solid;
  border-bottom-width: 1px;
}

.divide-slate-100 > :not(:last-child) {
  border-color: var(--slate-100);
}

.divide-slate-200 > :not(:last-child) {
  border-color: var(--slate-200);
}

/* Zaznaczenie tekstu */
.selection\:bg-blue-100::selection,
.selection\:bg-blue-100 ::selection {
  background-color: var(--blue-100);
}

.selection\:text-blue-900::selection,
.selection\:text-blue-900 ::selection {
  color: var(--blue-900);
}

/* Hover / Focus / Disabled */
.hover\:bg-white\/20:hover { background-color: rgba(255, 255, 255, 0.2); }
.hover\:bg-slate-50:hover { background-color: var(--slate-50); }
.hover\:bg-slate-50\/60:hover { background-color: color-mix(in srgb, var(--slate-50) 60%, transparent); }
.hover\:bg-slate-50\/70:hover { background-color: color-mix(in srgb, var(--slate-50) 70%, transparent); }
.hover\:bg-slate-50\/80:hover { background-color: color-mix(in srgb, var(--slate-50) 80%, transparent); }
.hover\:bg-slate-100:hover { background-color: var(--slate-100); }
.hover\:bg-slate-800:hover { background-color: var(--ink-hover); }
.hover\:bg-blue-100:hover { background-color: var(--blue-100); }
.hover\:bg-blue-800:hover { background-color: var(--primary-hover); }
.hover\:bg-amber-100:hover { background-color: var(--amber-100); }
.hover\:bg-amber-800:hover { background-color: var(--warn-solid-hover); }
.hover\:bg-red-50:hover { background-color: var(--red-50); }
.hover\:bg-red-100:hover { background-color: var(--red-100); }
.hover\:bg-red-800:hover { background-color: var(--danger-solid-hover); }

.hover\:text-slate-700:hover { color: var(--slate-700); }
.hover\:text-slate-900:hover { color: var(--slate-900); }
.hover\:text-blue-800:hover { color: var(--blue-800); }
.hover\:text-blue-900:hover { color: var(--blue-900); }
.hover\:text-red-600:hover { color: var(--red-600); }
.hover\:text-red-950:hover { color: var(--red-950); }

.focus\:border-blue-600:focus { border-color: var(--primary); }
.focus\:outline-none:focus { outline: none; }

.disabled\:opacity-30:disabled { opacity: 0.3; }
.disabled\:opacity-50:disabled { opacity: 0.5; }
.disabled\:opacity-60:disabled { opacity: 0.6; }


/* ===== layout ===== */

/* Układ, pozycjonowanie, siatki, marginesy, odstępy i responsywność */

/* Display */
.block { display: block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

/* Pozycjonowanie */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.top-1\/2 { top: 50%; }
.left-3 { left: 0.75rem; }
.-translate-y-1\/2 { transform: translateY(-50%); }

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-50 { z-index: 50; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* Flex & Grid */
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.shrink-0 { flex-shrink: 0; }

.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-center { align-items: center; }
.items-stretch { align-items: stretch; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-x-2 { column-gap: 0.5rem; }
.gap-x-3 { column-gap: 0.75rem; }
.gap-y-0\.5 { row-gap: 0.125rem; }
.gap-y-1 { row-gap: 0.25rem; }

/* Odstępy pionowe */
.space-y-0\.5 > :not(:last-child) { margin-bottom: 0.125rem; }
.space-y-1 > :not(:last-child) { margin-bottom: 0.25rem; }
.space-y-1\.5 > :not(:last-child) { margin-bottom: 0.375rem; }
.space-y-2 > :not(:last-child) { margin-bottom: 0.5rem; }
.space-y-2\.5 > :not(:last-child) { margin-bottom: 0.625rem; }
.space-y-3 > :not(:last-child) { margin-bottom: 0.75rem; }
.space-y-4 > :not(:last-child) { margin-bottom: 1rem; }
.space-y-5 > :not(:last-child) { margin-bottom: 1.25rem; }
.space-y-6 > :not(:last-child) { margin-bottom: 1.5rem; }

/* Wymiary */
.w-3\.5 { width: 0.875rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-10 { width: 2.5rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-72 { width: 18rem; }
.w-auto { width: auto; }
.w-fit { width: fit-content; }
.w-full { width: 100%; }

.h-1 { height: 0.25rem; }
.h-1\.5 { height: 0.375rem; }
.h-3\.5 { height: 0.875rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-28 { height: 7rem; }
.h-32 { height: 8rem; }
.h-40 { height: 10rem; }
.h-full { height: 100%; }

.min-w-0 { min-width: 0; }
.min-w-\[38px\] { min-width: 38px; }
.min-w-\[40px\] { min-width: 40px; }
.min-w-\[125px\] { min-width: 125px; }
.min-w-\[130px\] { min-width: 130px; }
.min-w-\[155px\] { min-width: 155px; }
.min-w-\[170px\] { min-width: 170px; }

.min-h-\[38px\] { min-height: 38px; }
.min-h-\[40px\] { min-height: 40px; }
.min-h-\[42px\] { min-height: 42px; }
.min-h-\[44px\] { min-height: 44px; }
.min-h-\[48px\] { min-height: 48px; }
.min-h-\[52px\] { min-height: 52px; }
.min-h-\[56px\] { min-height: 56px; }
.min-h-screen { min-height: 100vh; }

.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-\[85vw\] { max-width: 85vw; }
.max-w-\[1440px\] { max-width: 1440px; }
.max-w-full { max-width: 100%; }

.max-h-60 { max-height: 15rem; }
.max-h-\[75vh\] { max-height: 75vh; }
.max-h-\[80vh\] { max-height: 80vh; }
.max-h-\[82vh\] { max-height: 82vh; }

.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }

/* Marginesy i paddingi */
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }

.p-0\.5 { padding: 0.125rem; }
.p-1 { padding: 0.25rem; }
.p-1\.5 { padding: 0.375rem; }
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.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-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }

.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-5 { padding-top: 1.25rem; }
.pr-3 { padding-right: 0.75rem; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-5 { padding-bottom: 1.25rem; }
.pl-5 { padding-left: 1.25rem; }
.pl-8 { padding-left: 2rem; }
.pl-9 { padding-left: 2.25rem; }

/* Responsywność */
@media (min-width: 640px) {
  .sm\:hidden { display: none; }
  .sm\:inline { display: inline; }
  .sm\:inline-flex { display: inline-flex; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .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\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm\:col-span-2 { grid-column: span 2 / span 2; }
  .sm\:w-44 { width: 11rem; }
  .sm\:w-52 { width: 13rem; }
  .sm\:w-56 { width: 14rem; }
  .sm\:w-60 { width: 15rem; }
  .sm\:max-w-md { max-width: 28rem; }
  .sm\:p-4 { padding: 1rem; }
  .sm\:p-5 { padding: 1.25rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .sm\:rounded-2xl { border-radius: 1rem; }
}

@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.gap-px { gap: 1px; }

@media (min-width: 1024px) {
  .lg\:hidden { display: none; }
  .lg\:flex { display: flex; }
  .lg\:fixed { position: fixed; }
  .lg\:inset-y-0 { top: 0; bottom: 0; }
  .lg\:flex-col { flex-direction: column; }
  .lg\:flex-row { flex-direction: row; }
  .lg\:items-center { align-items: center; }
  .lg\:w-64 { width: 16rem; }
  .lg\:pl-64 { padding-left: 16rem; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .xl\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .xl\:col-span-4 { grid-column: span 4 / span 4; }
  .xl\:col-span-5 { grid-column: span 5 / span 5; }
  .xl\:col-span-7 { grid-column: span 7 / span 7; }
  .xl\:col-span-8 { grid-column: span 8 / span 8; }
  .xl\:sticky { position: sticky; }
  .xl\:top-6 { top: 1.5rem; }
}


/* ===== effects ===== */

/* Rozmiary tekstu, zaokrąglenia, cienie, przejścia i obrazy */

/* Typografia */
.text-\[11px\] { font-size: 11px; line-height: 1.35; }
.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; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-widest { letter-spacing: 0.1em; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.whitespace-nowrap { white-space: nowrap; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Zaokrąglenia */
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-t-3xl {
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
}
.rounded-full { border-radius: 9999px; }

/* Cienie */
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Rozmycie tła */
.backdrop-blur-xs {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.backdrop-blur-sm {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.backdrop-blur-md {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* Obrazy */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* Przejścia i interakcje grupy */
.transition-all {
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.transition-colors {
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.transition-transform {
  transition: transform 0.15s ease;
}
.duration-150 { transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }

.group:hover .group-hover\:scale-\[1\.02\] {
  transform: scale(1.02);
}

.group:hover .group-hover\:text-blue-700 {
  color: var(--blue-700);
}


/* ===== Pozostałe klasy pomocnicze ===== */

.align-top { vertical-align: top; }
.break-all { word-break: break-all; }
.self-center { align-self: center; }
.ml-2 { margin-left: 0.5rem; }
.underline { text-decoration-line: underline; }
.underline-offset-4 { text-underline-offset: 4px; }
.fill-current { fill: currentColor; }
.active\:scale-\[0\.99\]:active { transform: scale(0.99); }
.focus-visible\:outline-2:focus-visible { outline-style: solid; outline-width: 2px; }
.focus-visible\:outline-blue-600:focus-visible { outline-color: var(--blue-600); }
