/**
 * Portal Transportowy - Utility Classes
 * Version: 1.0.0
 * Description: Tailwind-inspired utility classes dla szybszego developmentu
 * 
 * Kategorie:
 * 1. Display & Visibility
 * 2. Flexbox & Grid Utilities
 * 3. Spacing (Gap)
 * 4. Width & Height
 * 5. Overflow
 * 6. Position & Z-index
 * 7. Cursor
 * 8. Opacity
 * 9. Text Utilities
 * 10. Borders
 * 11. Background
 * 12. Transitions
 * 13. Transform
 */

/* ==========================================
   1. DISPLAY & VISIBILITY
   ========================================== */

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }

.hidden { display: none !important; }
.visible { visibility: visible !important; }
.invisible { visibility: hidden !important; }

/* ==========================================
   2. FLEXBOX & GRID UTILITIES
   ========================================== */

/* Flex Direction */
.flex-row { flex-direction: row !important; }
.flex-row-reverse { flex-direction: row-reverse !important; }
.flex-column { flex-direction: column !important; }
.flex-column-reverse { flex-direction: column-reverse !important; }

/* Flex Wrap */
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.flex-wrap-reverse { flex-wrap: wrap-reverse !important; }

/* Justify Content */
.justify-start { justify-content: flex-start !important; }
.justify-end { justify-content: flex-end !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-around { justify-content: space-around !important; }
.justify-evenly { justify-content: space-evenly !important; }

/* Align Items */
.align-start { align-items: flex-start !important; }
.align-end { align-items: flex-end !important; }
.align-center { align-items: center !important; }
.align-baseline { align-items: baseline !important; }
.align-stretch { align-items: stretch !important; }

/* Align Self */
.align-self-start { align-self: flex-start !important; }
.align-self-end { align-self: flex-end !important; }
.align-self-center { align-self: center !important; }
.align-self-baseline { align-self: baseline !important; }
.align-self-stretch { align-self: stretch !important; }

/* Flex Grow & Shrink */
.flex-grow-0 { flex-grow: 0 !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.flex-shrink-1 { flex-shrink: 1 !important; }

/* ==========================================
   3. SPACING (GAP)
   ========================================== */

.gap-0 { gap: 0 !important; }
.gap-1 { gap: 0.25rem !important; } /* 4px */
.gap-2 { gap: 0.5rem !important; }  /* 8px */
.gap-3 { gap: 0.75rem !important; } /* 12px */
.gap-4 { gap: 1rem !important; }    /* 16px */
.gap-5 { gap: 1.25rem !important; } /* 20px */
.gap-6 { gap: 1.5rem !important; }  /* 24px */
.gap-8 { gap: 2rem !important; }    /* 32px */
.gap-10 { gap: 2.5rem !important; } /* 40px */
.gap-12 { gap: 3rem !important; }   /* 48px */
.gap-16 { gap: 4rem !important; }   /* 64px */

/* Row & Column Gap */
.row-gap-0 { row-gap: 0 !important; }
.row-gap-2 { row-gap: 0.5rem !important; }
.row-gap-3 { row-gap: 0.75rem !important; }
.row-gap-4 { row-gap: 1rem !important; }
.row-gap-6 { row-gap: 1.5rem !important; }
.row-gap-8 { row-gap: 2rem !important; }

.column-gap-0 { column-gap: 0 !important; }
.column-gap-2 { column-gap: 0.5rem !important; }
.column-gap-3 { column-gap: 0.75rem !important; }
.column-gap-4 { column-gap: 1rem !important; }
.column-gap-6 { column-gap: 1.5rem !important; }
.column-gap-8 { column-gap: 2rem !important; }

/* ==========================================
   4. WIDTH & HEIGHT
   ========================================== */

/* Width */
.w-auto { width: auto !important; }
.w-full { width: 100% !important; }
.w-screen { width: 100vw !important; }
.w-50 { width: 50% !important; }
.w-33 { width: 33.333333% !important; }
.w-25 { width: 25% !important; }

/* Max Width */
.max-w-none { max-width: none !important; }
.max-w-xs { max-width: 20rem !important; }    /* 320px */
.max-w-sm { max-width: 24rem !important; }    /* 384px */
.max-w-md { max-width: 28rem !important; }    /* 448px */
.max-w-lg { max-width: 32rem !important; }    /* 512px */
.max-w-xl { max-width: 36rem !important; }    /* 576px */
.max-w-2xl { max-width: 42rem !important; }   /* 672px */
.max-w-3xl { max-width: 48rem !important; }   /* 768px */
.max-w-4xl { max-width: 56rem !important; }   /* 896px */
.max-w-5xl { max-width: 64rem !important; }   /* 1024px */
.max-w-6xl { max-width: 72rem !important; }   /* 1152px */
.max-w-full { max-width: 100% !important; }

/* Min Width */
.min-w-0 { min-width: 0 !important; }
.min-w-full { min-width: 100% !important; }

/* Height */
.h-auto { height: auto !important; }
.h-full { height: 100% !important; }
.h-screen { height: 100vh !important; }

/* Max Height */
.max-h-full { max-height: 100% !important; }
.max-h-screen { max-height: 100vh !important; }

/* Min Height */
.min-h-0 { min-height: 0 !important; }
.min-h-full { min-height: 100% !important; }
.min-h-screen { min-height: 100vh !important; }

/* ==========================================
   5. OVERFLOW
   ========================================== */

.overflow-auto { overflow: auto !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-visible { overflow: visible !important; }
.overflow-scroll { overflow: scroll !important; }

.overflow-x-auto { overflow-x: auto !important; }
.overflow-x-hidden { overflow-x: hidden !important; }
.overflow-x-visible { overflow-x: visible !important; }
.overflow-x-scroll { overflow-x: scroll !important; }

.overflow-y-auto { overflow-y: auto !important; }
.overflow-y-hidden { overflow-y: hidden !important; }
.overflow-y-visible { overflow-y: visible !important; }
.overflow-y-scroll { overflow-y: scroll !important; }

/* Scrollbar Gutter (nowoczesne przeglądarki) */
.scrollbar-gutter-stable { scrollbar-gutter: stable !important; }

/* ==========================================
   6. POSITION & Z-INDEX
   ========================================== */

.position-static { position: static !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.position-sticky { position: sticky !important; }

/* Z-index - zestaw wartości dla różnych warstw */
.z-0 { z-index: 0 !important; }
.z-10 { z-index: 10 !important; }
.z-20 { z-index: 20 !important; }
.z-30 { z-index: 30 !important; }
.z-40 { z-index: 40 !important; }
.z-50 { z-index: 50 !important; }
.z-100 { z-index: 100 !important; }
.z-500 { z-index: 500 !important; }
.z-999 { z-index: 999 !important; }
.z-1000 { z-index: 1000 !important; }
.z-9999 { z-index: 9999 !important; }
.z-max { z-index: 999999 !important; }

/* Top, Right, Bottom, Left */
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0 !important; }
.right-0 { right: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.left-0 { left: 0 !important; }

/* ==========================================
   7. CURSOR
   ========================================== */

.cursor-auto { cursor: auto !important; }
.cursor-default { cursor: default !important; }
.cursor-pointer { cursor: pointer !important; }
.cursor-wait { cursor: wait !important; }
.cursor-text { cursor: text !important; }
.cursor-move { cursor: move !important; }
.cursor-not-allowed { cursor: not-allowed !important; }
.cursor-help { cursor: help !important; }
.cursor-grab { cursor: grab !important; }
.cursor-grabbing { cursor: grabbing !important; }

/* Pointer Events */
.pointer-events-none { pointer-events: none !important; }
.pointer-events-auto { pointer-events: auto !important; }

/* User Select */
.select-none { user-select: none !important; }
.select-text { user-select: text !important; }
.select-all { user-select: all !important; }
.select-auto { user-select: auto !important; }

/* ==========================================
   8. OPACITY
   ========================================== */

.opacity-0 { opacity: 0 !important; }
.opacity-10 { opacity: 0.1 !important; }
.opacity-20 { opacity: 0.2 !important; }
.opacity-25 { opacity: 0.25 !important; }
.opacity-30 { opacity: 0.3 !important; }
.opacity-40 { opacity: 0.4 !important; }
.opacity-50 { opacity: 0.5 !important; }
.opacity-60 { opacity: 0.6 !important; }
.opacity-70 { opacity: 0.7 !important; }
.opacity-75 { opacity: 0.75 !important; }
.opacity-80 { opacity: 0.8 !important; }
.opacity-90 { opacity: 0.9 !important; }
.opacity-100 { opacity: 1 !important; }

/* ==========================================
   9. TEXT UTILITIES
   ========================================== */

/* Text Align */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-justify { text-align: justify !important; }

/* Text Transform */
.text-uppercase { text-transform: uppercase !important; }
.text-lowercase { text-transform: lowercase !important; }
.text-capitalize { text-transform: capitalize !important; }
.text-normal-case { text-transform: none !important; }

/* Text Decoration */
.text-underline { text-decoration: underline !important; }
.text-line-through { text-decoration: line-through !important; }
.text-no-underline { text-decoration: none !important; }

/* Font Weight */
.font-thin { font-weight: 100 !important; }
.font-light { font-weight: 300 !important; }
.font-normal { font-weight: 400 !important; }
.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }
.font-extrabold { font-weight: 800 !important; }
.font-black { font-weight: 900 !important; }

/* Font Style */
.italic { font-style: italic !important; }
.not-italic { font-style: normal !important; }

/* Line Height */
.leading-none { line-height: 1 !important; }
.leading-tight { line-height: 1.25 !important; }
.leading-snug { line-height: 1.375 !important; }
.leading-normal { line-height: 1.5 !important; }
.leading-relaxed { line-height: 1.625 !important; }
.leading-loose { line-height: 2 !important; }

/* Text Overflow */
.truncate {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.text-ellipsis { text-overflow: ellipsis !important; }
.text-clip { text-overflow: clip !important; }

/* White Space */
.whitespace-normal { white-space: normal !important; }
.whitespace-nowrap { white-space: nowrap !important; }
.whitespace-pre { white-space: pre !important; }
.whitespace-pre-line { white-space: pre-line !important; }
.whitespace-pre-wrap { white-space: pre-wrap !important; }

/* Word Break */
.break-normal { word-break: normal !important; overflow-wrap: normal !important; }
.break-words { overflow-wrap: break-word !important; }
.break-all { word-break: break-all !important; }

/* Line Clamp (wieloliniowe truncate) */
.line-clamp-1 {
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.line-clamp-2 {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.line-clamp-3 {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.line-clamp-4 {
    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.line-clamp-5 {
    display: -webkit-box !important;
    -webkit-line-clamp: 5 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.line-clamp-6 {
    display: -webkit-box !important;
    -webkit-line-clamp: 6 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* ==========================================
   10. BORDERS
   ========================================== */

/* Border Width */
.border-0 { border-width: 0 !important; }
.border { border-width: 1px !important; }
.border-2 { border-width: 2px !important; }
.border-4 { border-width: 4px !important; }
.border-8 { border-width: 8px !important; }

.border-t-0 { border-top-width: 0 !important; }
.border-r-0 { border-right-width: 0 !important; }
.border-b-0 { border-bottom-width: 0 !important; }
.border-l-0 { border-left-width: 0 !important; }

.border-t { border-top-width: 1px !important; }
.border-r { border-right-width: 1px !important; }
.border-b { border-bottom-width: 1px !important; }
.border-l { border-left-width: 1px !important; }

/* Border Style */
.border-solid { border-style: solid !important; }
.border-dashed { border-style: dashed !important; }
.border-dotted { border-style: dotted !important; }
.border-double { border-style: double !important; }
.border-none { border-style: none !important; }

/* Border Radius - Shape & Sizing System v4.0 */
.rounded-none { border-radius: 0 !important; }
.rounded-sm { border-radius: 0.125rem !important; } /* 2px - custom (poniżej systemu) */
.rounded { border-radius: var(--radius-sm) !important; }     /* 4px - Shape & Sizing System v4.0 */
.rounded-md { border-radius: 0.375rem !important; } /* 6px - custom (pomiędzy sm a button) */
.rounded-lg { border-radius: var(--radius-button) !important; }   /* 8px - Shape & Sizing System v4.0 */
.rounded-xl { border-radius: var(--radius-card) !important; }  /* 12px - Shape & Sizing System v4.0 */
.rounded-2xl { border-radius: var(--radius-xl) !important; }    /* 16px - Shape & Sizing System v4.0 */
.rounded-3xl { border-radius: 1.5rem !important; }  /* 24px - custom (large) */
.rounded-full { border-radius: var(--radius-full) !important; }  /* 50% - Shape & Sizing System v4.0 */

/* Rounded Corners */
.rounded-t-none { border-top-left-radius: 0; border-top-right-radius: 0; }
.rounded-r-none { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.rounded-b-none { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.rounded-l-none { border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* ==========================================
   11. BACKGROUND
   ========================================== */

/* Background Size */
.bg-auto { background-size: auto !important; }
.bg-cover { background-size: cover !important; }
.bg-contain { background-size: contain !important; }

/* Background Position */
.bg-center { background-position: center !important; }
.bg-top { background-position: top !important; }
.bg-right { background-position: right !important; }
.bg-bottom { background-position: bottom !important; }
.bg-left { background-position: left !important; }

/* Background Repeat */
.bg-repeat { background-repeat: repeat !important; }
.bg-no-repeat { background-repeat: no-repeat !important; }
.bg-repeat-x { background-repeat: repeat-x !important; }
.bg-repeat-y { background-repeat: repeat-y !important; }

/* ==========================================
   12. TRANSITIONS
   ========================================== */

.transition-none { transition: none !important; }

.transition-all {
    transition-property: all !important;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
    transition-duration: 150ms !important;
}

.transition {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform !important;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
    transition-duration: 150ms !important;
}

.transition-colors {
    transition-property: background-color, border-color, color, fill, stroke !important;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
    transition-duration: 150ms !important;
}

.transition-opacity {
    transition-property: opacity !important;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
    transition-duration: 150ms !important;
}

.transition-transform {
    transition-property: transform !important;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
    transition-duration: 150ms !important;
}

/* Duration */
.duration-75 { transition-duration: 75ms !important; }
.duration-100 { transition-duration: 100ms !important; }
.duration-150 { transition-duration: 150ms !important; }
.duration-200 { transition-duration: 200ms !important; }
.duration-300 { transition-duration: 300ms !important; }
.duration-500 { transition-duration: 500ms !important; }
.duration-700 { transition-duration: 700ms !important; }
.duration-1000 { transition-duration: 1000ms !important; }

/* Timing Function */
.ease-linear { transition-timing-function: linear !important; }
.ease-in { transition-timing-function: cubic-bezier(0.4, 0, 1, 1) !important; }
.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1) !important; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; }

/* ==========================================
   13. TRANSFORM
   ========================================== */

.transform { transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) !important; }
.transform-none { transform: none !important; }

/* Scale */
.scale-0 { transform: scale(0) !important; }
.scale-50 { transform: scale(0.5) !important; }
.scale-75 { transform: scale(0.75) !important; }
.scale-90 { transform: scale(0.9) !important; }
.scale-95 { transform: scale(0.95) !important; }
.scale-100 { transform: scale(1) !important; }
.scale-105 { transform: scale(1.05) !important; }
.scale-110 { transform: scale(1.1) !important; }
.scale-125 { transform: scale(1.25) !important; }
.scale-150 { transform: scale(1.5) !important; }

/* Rotate */
.rotate-0 { transform: rotate(0deg) !important; }
.rotate-45 { transform: rotate(45deg) !important; }
.rotate-90 { transform: rotate(90deg) !important; }
.rotate-180 { transform: rotate(180deg) !important; }
.rotate-270 { transform: rotate(270deg) !important; }
.-rotate-45 { transform: rotate(-45deg) !important; }
.-rotate-90 { transform: rotate(-90deg) !important; }
.-rotate-180 { transform: rotate(-180deg) !important; }

/* Translate */
.translate-x-0 { transform: translateX(0) !important; }
.translate-y-0 { transform: translateY(0) !important; }

/* ==========================================
   14. BOX SHADOW
   ========================================== */

.shadow-none { box-shadow: none !important; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important; }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important; }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important; }

/* ==========================================
   15. SPACING - MARGIN & PADDING
   ========================================== */

/* Spacing Scale: 0, 1, 2, 3, 4, 5, 6, 8, 10, 12, 16, 20, 24 */
/* 1 = 0.25rem = 4px */

/* === MARGIN === */

/* Margin All Sides */
.m-0 { margin: 0 !important; }
.m-1 { margin: 0.25rem !important; }   /* 4px */
.m-2 { margin: 0.5rem !important; }    /* 8px */
.m-3 { margin: 0.75rem !important; }   /* 12px */
.m-4 { margin: 1rem !important; }      /* 16px */
.m-5 { margin: 1.25rem !important; }   /* 20px */
.m-6 { margin: 1.5rem !important; }    /* 24px */
.m-8 { margin: 2rem !important; }      /* 32px */
.m-10 { margin: 2.5rem !important; }   /* 40px */
.m-12 { margin: 3rem !important; }     /* 48px */
.m-16 { margin: 4rem !important; }     /* 64px */
.m-20 { margin: 5rem !important; }     /* 80px */
.m-24 { margin: 6rem !important; }     /* 96px */
.m-auto { margin: auto !important; }

/* Margin Top */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 0.75rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-5 { margin-top: 1.25rem !important; }
.mt-6 { margin-top: 1.5rem !important; }
.mt-8 { margin-top: 2rem !important; }
.mt-10 { margin-top: 2.5rem !important; }
.mt-12 { margin-top: 3rem !important; }
.mt-16 { margin-top: 4rem !important; }
.mt-20 { margin-top: 5rem !important; }
.mt-24 { margin-top: 6rem !important; }
.mt-auto { margin-top: auto !important; }

/* Margin Bottom */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-5 { margin-bottom: 1.25rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }
.mb-8 { margin-bottom: 2rem !important; }
.mb-10 { margin-bottom: 2.5rem !important; }
.mb-12 { margin-bottom: 3rem !important; }
.mb-16 { margin-bottom: 4rem !important; }
.mb-20 { margin-bottom: 5rem !important; }
.mb-24 { margin-bottom: 6rem !important; }
.mb-auto { margin-bottom: auto !important; }

/* Margin Left */
.ml-0 { margin-left: 0 !important; }
.ml-1 { margin-left: 0.25rem !important; }
.ml-2 { margin-left: 0.5rem !important; }
.ml-3 { margin-left: 0.75rem !important; }
.ml-4 { margin-left: 1rem !important; }
.ml-5 { margin-left: 1.25rem !important; }
.ml-6 { margin-left: 1.5rem !important; }
.ml-8 { margin-left: 2rem !important; }
.ml-10 { margin-left: 2.5rem !important; }
.ml-12 { margin-left: 3rem !important; }
.ml-16 { margin-left: 4rem !important; }
.ml-20 { margin-left: 5rem !important; }
.ml-24 { margin-left: 6rem !important; }
.ml-auto { margin-left: auto !important; }

/* Margin Right */
.mr-0 { margin-right: 0 !important; }
.mr-1 { margin-right: 0.25rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.mr-3 { margin-right: 0.75rem !important; }
.mr-4 { margin-right: 1rem !important; }
.mr-5 { margin-right: 1.25rem !important; }
.mr-6 { margin-right: 1.5rem !important; }
.mr-8 { margin-right: 2rem !important; }
.mr-10 { margin-right: 2.5rem !important; }
.mr-12 { margin-right: 3rem !important; }
.mr-16 { margin-right: 4rem !important; }
.mr-20 { margin-right: 5rem !important; }
.mr-24 { margin-right: 6rem !important; }
.mr-auto { margin-right: auto !important; }

/* Margin X Axis (left + right) */
.mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
.mx-1 { margin-left: 0.25rem !important; margin-right: 0.25rem !important; }
.mx-2 { margin-left: 0.5rem !important; margin-right: 0.5rem !important; }
.mx-3 { margin-left: 0.75rem !important; margin-right: 0.75rem !important; }
.mx-4 { margin-left: 1rem !important; margin-right: 1rem !important; }
.mx-5 { margin-left: 1.25rem !important; margin-right: 1.25rem !important; }
.mx-6 { margin-left: 1.5rem !important; margin-right: 1.5rem !important; }
.mx-8 { margin-left: 2rem !important; margin-right: 2rem !important; }
.mx-10 { margin-left: 2.5rem !important; margin-right: 2.5rem !important; }
.mx-12 { margin-left: 3rem !important; margin-right: 3rem !important; }
.mx-16 { margin-left: 4rem !important; margin-right: 4rem !important; }
.mx-20 { margin-left: 5rem !important; margin-right: 5rem !important; }
.mx-24 { margin-left: 6rem !important; margin-right: 6rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* Margin Y Axis (top + bottom) */
.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-1 { margin-top: 0.25rem !important; margin-bottom: 0.25rem !important; }
.my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
.my-3 { margin-top: 0.75rem !important; margin-bottom: 0.75rem !important; }
.my-4 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.my-5 { margin-top: 1.25rem !important; margin-bottom: 1.25rem !important; }
.my-6 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-8 { margin-top: 2rem !important; margin-bottom: 2rem !important; }
.my-10 { margin-top: 2.5rem !important; margin-bottom: 2.5rem !important; }
.my-12 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.my-16 { margin-top: 4rem !important; margin-bottom: 4rem !important; }
.my-20 { margin-top: 5rem !important; margin-bottom: 5rem !important; }
.my-24 { margin-top: 6rem !important; margin-bottom: 6rem !important; }
.my-auto { margin-top: auto !important; margin-bottom: auto !important; }

/* Negative Margins (useful for offset layouts) */
.-mt-1 { margin-top: -0.25rem !important; }
.-mt-2 { margin-top: -0.5rem !important; }
.-mt-4 { margin-top: -1rem !important; }
.-mt-6 { margin-top: -1.5rem !important; }
.-mt-8 { margin-top: -2rem !important; }

.-mb-1 { margin-bottom: -0.25rem !important; }
.-mb-2 { margin-bottom: -0.5rem !important; }
.-mb-4 { margin-bottom: -1rem !important; }
.-mb-6 { margin-bottom: -1.5rem !important; }
.-mb-8 { margin-bottom: -2rem !important; }

.-ml-1 { margin-left: -0.25rem !important; }
.-ml-2 { margin-left: -0.5rem !important; }
.-ml-4 { margin-left: -1rem !important; }
.-ml-6 { margin-left: -1.5rem !important; }
.-ml-8 { margin-left: -2rem !important; }

.-mr-1 { margin-right: -0.25rem !important; }
.-mr-2 { margin-right: -0.5rem !important; }
.-mr-4 { margin-right: -1rem !important; }
.-mr-6 { margin-right: -1.5rem !important; }
.-mr-8 { margin-right: -2rem !important; }

/* === PADDING === */

/* Padding All Sides */
.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }   /* 4px */
.p-2 { padding: 0.5rem !important; }    /* 8px */
.p-3 { padding: 0.75rem !important; }   /* 12px */
.p-4 { padding: 1rem !important; }      /* 16px */
.p-5 { padding: 1.25rem !important; }   /* 20px */
.p-6 { padding: 1.5rem !important; }    /* 24px */
.p-8 { padding: 2rem !important; }      /* 32px */
.p-10 { padding: 2.5rem !important; }   /* 40px */
.p-12 { padding: 3rem !important; }     /* 48px */
.p-16 { padding: 4rem !important; }     /* 64px */
.p-20 { padding: 5rem !important; }     /* 80px */
.p-24 { padding: 6rem !important; }     /* 96px */

/* Padding Top */
.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 0.75rem !important; }
.pt-4 { padding-top: 1rem !important; }
.pt-5 { padding-top: 1.25rem !important; }
.pt-6 { padding-top: 1.5rem !important; }
.pt-8 { padding-top: 2rem !important; }
.pt-10 { padding-top: 2.5rem !important; }
.pt-12 { padding-top: 3rem !important; }
.pt-16 { padding-top: 4rem !important; }
.pt-20 { padding-top: 5rem !important; }
.pt-24 { padding-top: 6rem !important; }

/* Padding Bottom */
.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 0.75rem !important; }
.pb-4 { padding-bottom: 1rem !important; }
.pb-5 { padding-bottom: 1.25rem !important; }
.pb-6 { padding-bottom: 1.5rem !important; }
.pb-8 { padding-bottom: 2rem !important; }
.pb-10 { padding-bottom: 2.5rem !important; }
.pb-12 { padding-bottom: 3rem !important; }
.pb-16 { padding-bottom: 4rem !important; }
.pb-20 { padding-bottom: 5rem !important; }
.pb-24 { padding-bottom: 6rem !important; }

/* Padding Left */
.pl-0 { padding-left: 0 !important; }
.pl-1 { padding-left: 0.25rem !important; }
.pl-2 { padding-left: 0.5rem !important; }
.pl-3 { padding-left: 0.75rem !important; }
.pl-4 { padding-left: 1rem !important; }
.pl-5 { padding-left: 1.25rem !important; }
.pl-6 { padding-left: 1.5rem !important; }
.pl-8 { padding-left: 2rem !important; }
.pl-10 { padding-left: 2.5rem !important; }
.pl-12 { padding-left: 3rem !important; }
.pl-16 { padding-left: 4rem !important; }
.pl-20 { padding-left: 5rem !important; }
.pl-24 { padding-left: 6rem !important; }

/* Padding Right */
.pr-0 { padding-right: 0 !important; }
.pr-1 { padding-right: 0.25rem !important; }
.pr-2 { padding-right: 0.5rem !important; }
.pr-3 { padding-right: 0.75rem !important; }
.pr-4 { padding-right: 1rem !important; }
.pr-5 { padding-right: 1.25rem !important; }
.pr-6 { padding-right: 1.5rem !important; }
.pr-8 { padding-right: 2rem !important; }
.pr-10 { padding-right: 2.5rem !important; }
.pr-12 { padding-right: 3rem !important; }
.pr-16 { padding-right: 4rem !important; }
.pr-20 { padding-right: 5rem !important; }
.pr-24 { padding-right: 6rem !important; }

/* Padding X Axis (left + right) */
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-1 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-5 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
.px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-8 { padding-left: 2rem !important; padding-right: 2rem !important; }
.px-10 { padding-left: 2.5rem !important; padding-right: 2.5rem !important; }
.px-12 { padding-left: 3rem !important; padding-right: 3rem !important; }
.px-16 { padding-left: 4rem !important; padding-right: 4rem !important; }
.px-20 { padding-left: 5rem !important; padding-right: 5rem !important; }
.px-24 { padding-left: 6rem !important; padding-right: 6rem !important; }

/* Padding Y Axis (top + bottom) */
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-5 { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
.py-6 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-8 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
.py-10 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
.py-12 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.py-16 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
.py-20 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
.py-24 { padding-top: 6rem !important; padding-bottom: 6rem !important; }

/* ==========================================
   16. DARK MODE SUPPORT
   ========================================== */

/* Wszystkie utility classes automatycznie wspierają dark mode przez CSS variables */
/* Żadnych dodatkowych klas nie potrzeba - kolory z variables.css się dostosują */

/* ==========================================
   17. RESPONSIVE UTILITIES (Media Queries)
   MOBILE PRECISION - Rozwiązuje problem "rozjeżdżającej się mobile responsywności"
   ========================================== */

/* === XXS MOBILE (360px) - Android małe === */
@media (max-width: 360px) {
    .xxs-hidden { display: none !important; }
    .xxs-block { display: block !important; }
    .xxs-flex { display: flex !important; }
    .xxs-w-full { width: 100% !important; }
    .xxs-p-2 { padding: 8px !important; }
    .xxs-gap-2 { gap: 8px !important; }
    .xxs-text-xs { font-size: 12px !important; }
    .xxs-grid-1 { grid-template-columns: 1fr !important; }
    .xxs-flex-col { flex-direction: column !important; }
}

/* === XS MOBILE (375px) - iPhone SE === */
@media (max-width: 375px) {
    .xs-hidden { display: none !important; }
    .xs-block { display: block !important; }
    .xs-flex { display: flex !important; }
    .xs-w-full { width: 100% !important; }
    .xs-p-2 { padding: 8px !important; }
    .xs-p-3 { padding: 12px !important; }
    .xs-gap-2 { gap: 8px !important; }
    .xs-gap-3 { gap: 12px !important; }
    .xs-text-sm { font-size: 14px !important; }
    .xs-grid-1 { grid-template-columns: 1fr !important; }
    .xs-flex-col { flex-direction: column !important; }
}

/* === SM MOBILE (480px) - ISTNIEJĄCY BREAKPOINT === */
@media (max-width: 480px) {
    .sm-hidden { display: none !important; }
    .sm-block { display: block !important; }
    .sm-flex { display: flex !important; }
    .sm-w-full { width: 100% !important; }
    .sm-p-3 { padding: 12px !important; }
    .sm-p-4 { padding: 16px !important; }
    .sm-gap-3 { gap: 12px !important; }
    .sm-gap-4 { gap: 16px !important; }
    .sm-grid-1 { grid-template-columns: 1fr !important; }
    .sm-flex-col { flex-direction: column !important; }
    .sm-text-center { text-align: center !important; }
}

/* === MOBILE LANDSCAPE (667px) - iPhone landscape === */
@media (max-width: 667px) and (orientation: landscape) {
    .landscape-p-2 { padding: 8px !important; }
    .landscape-gap-2 { gap: 8px !important; }
    .landscape-h-auto { height: auto !important; }
    .landscape-flex-row { flex-direction: row !important; }
}

/* === MD TABLET (768px) - ISTNIEJĄCY, ROZSZERZ === */
@media (max-width: 768px) {
    /* Już istniejące - ZACHOWAJ */
    .mobile-hidden { display: none !important; }
    .mobile-block { display: block !important; }
    .mobile-flex { display: flex !important; }
    .mobile-text-center { text-align: center !important; }
    .mobile-w-full { width: 100% !important; }
    .mobile-gap-2 { gap: 0.5rem !important; }
    .mobile-gap-3 { gap: 0.75rem !important; }
    .mobile-gap-4 { gap: 1rem !important; }
    
    /* ⭐ NOWE - dodaj brakujące */
    .md-hidden { display: none !important; }
    .md-block { display: block !important; }
    .md-flex { display: flex !important; }
    .md-w-full { width: 100% !important; }
    .md-text-center { text-align: center !important; }
    .md-gap-4 { gap: 16px !important; }
    .md-grid-1 { grid-template-columns: 1fr !important; }
    .md-flex-col { flex-direction: column !important; }
    .md-p-4 { padding: 16px !important; }
    .md-p-5 { padding: 20px !important; }
    .md-m-0 { margin: 0 !important; }
    .md-mt-4 { margin-top: 16px !important; }
    .md-mb-4 { margin-bottom: 16px !important; }
    .md-gap-2 { gap: 8px !important; }
    .md-gap-3 { gap: 12px !important; }
    .md-justify-center { justify-content: center !important; }
    .md-align-center { align-items: center !important; }
    .md-grid-2 { grid-template-columns: repeat(2, 1fr) !important; }
}

/* === TABLET PORTRAIT SPECIAL (820px) - iPad Air === */
@media (max-width: 820px) and (orientation: portrait) {
    .ipad-air-grid-2 { grid-template-columns: repeat(2, 1fr) !important; }
    .ipad-air-p-5 { padding: 20px !important; }
    .ipad-air-gap-4 { gap: 16px !important; }
}

/* === LG TABLET LANDSCAPE (1024px) - ISTNIEJĄCY === */
@media (max-width: 1024px) {
    .lg-hidden { display: none !important; }
    .lg-block { display: block !important; }
    .lg-flex { display: flex !important; }
    .lg-grid-2 { grid-template-columns: repeat(2, 1fr) !important; }
    .lg-p-5 { padding: 20px !important; }
    .lg-gap-4 { gap: 16px !important; }
}

@media (min-width: 769px) {
    /* Desktop overrides - dodaj .desktop- prefix */
    .desktop-hidden { display: none !important; }
    .desktop-block { display: block !important; }
    .desktop-flex { display: flex !important; }
}

/* === ORIENTATION HELPERS === */
@media (orientation: portrait) {
    .portrait-only { display: initial !important; }
    .landscape-only { display: none !important; }
}

@media (orientation: landscape) {
    .portrait-only { display: none !important; }
    .landscape-only { display: initial !important; }
}

/* ==========================================
   17. MISC UTILITIES
   ========================================== */

/* Object Fit */
.object-contain { object-fit: contain !important; }
.object-cover { object-fit: cover !important; }
.object-fill { object-fit: fill !important; }
.object-none { object-fit: none !important; }
.object-scale-down { object-fit: scale-down !important; }

/* Object Position */
.object-center { object-position: center !important; }
.object-top { object-position: top !important; }
.object-right { object-position: right !important; }
.object-bottom { object-position: bottom !important; }
.object-left { object-position: left !important; }

/* List Style */
.list-none { list-style-type: none !important; }
.list-disc { list-style-type: disc !important; }
.list-decimal { list-style-type: decimal !important; }

/* Vertical Align */
.align-baseline { vertical-align: baseline !important; }
.align-top { vertical-align: top !important; }
.align-middle { vertical-align: middle !important; }
.align-bottom { vertical-align: bottom !important; }
.align-text-top { vertical-align: text-top !important; }
.align-text-bottom { vertical-align: text-bottom !important; }

/* Aspect Ratio (nowoczesne przeglądarki) */
.aspect-auto { aspect-ratio: auto !important; }
.aspect-square { aspect-ratio: 1 / 1 !important; }
.aspect-video { aspect-ratio: 16 / 9 !important; }

/* Box Sizing */
.box-border { box-sizing: border-box !important; }
.box-content { box-sizing: content-box !important; }

/* Float */
.float-left { float: left !important; }
.float-right { float: right !important; }
.float-none { float: none !important; }
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Clear */
.clear-left { clear: left !important; }
.clear-right { clear: right !important; }
.clear-both { clear: both !important; }
.clear-none { clear: none !important; }

/* ==========================================
   📐 SECTION SPACING UTILITIES v1.0
   Single Source of Truth - analogia do Page Container & Footer Spacing
   ========================================== */

/* Section gap - margin-bottom (przestrzeń POD sekcją) */
.section-gap-xs { margin-bottom: var(--section-spacing-xs) !important; }
.section-gap-sm { margin-bottom: var(--section-spacing-sm) !important; }
.section-gap-md { margin-bottom: var(--section-spacing-md) !important; }
.section-gap-lg { margin-bottom: var(--section-spacing-lg) !important; }
.section-gap-xl { margin-bottom: var(--section-spacing-xl) !important; }

/* Section gap - margin-top (przestrzeń NAD sekcją) */
.section-mt-xs { margin-top: var(--section-spacing-xs) !important; }
.section-mt-sm { margin-top: var(--section-spacing-sm) !important; }
.section-mt-md { margin-top: var(--section-spacing-md) !important; }
.section-mt-lg { margin-top: var(--section-spacing-lg) !important; }
.section-mt-xl { margin-top: var(--section-spacing-xl) !important; }

/* Component spacing - gap wewnątrz komponentów */
.component-gap-xs { gap: var(--component-spacing-xs) !important; }
.component-gap-sm { gap: var(--component-spacing-sm) !important; }
.component-gap-md { gap: var(--component-spacing-md) !important; }
.component-gap-lg { gap: var(--component-spacing-lg) !important; }

/* Card grid - standardowe layouty kart */
.card-grid {
    display: grid !important;
    gap: var(--card-gap) !important;
}

.card-grid-compact {
    display: grid !important;
    gap: var(--grid-gap-sm) !important;
}

/* ==========================================
   📱 RESPONSIVE - automatic scaling na mobile
   ========================================== */

@media (max-width: 768px) {
    .section-gap-xs { margin-bottom: var(--section-spacing-xs-mobile) !important; }
    .section-gap-sm { margin-bottom: var(--section-spacing-sm-mobile) !important; }
    .section-gap-md { margin-bottom: var(--section-spacing-md-mobile) !important; }
    .section-gap-lg { margin-bottom: var(--section-spacing-lg-mobile) !important; }
    .section-gap-xl { margin-bottom: var(--section-spacing-xl-mobile) !important; }
    
    .section-mt-xs { margin-top: var(--section-spacing-xs-mobile) !important; }
    .section-mt-sm { margin-top: var(--section-spacing-sm-mobile) !important; }
    .section-mt-md { margin-top: var(--section-spacing-md-mobile) !important; }
    .section-mt-lg { margin-top: var(--section-spacing-lg-mobile) !important; }
    .section-mt-xl { margin-top: var(--section-spacing-xl-mobile) !important; }
    
    .card-grid { gap: var(--card-gap-mobile) !important; }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .card-grid { gap: var(--card-gap-tablet) !important; }
}

/* ==========================================
   END OF UTILITIES
   ========================================== */

/**
 * UWAGA: Wszystkie utility classes używają !important aby:
 * 1. Zapewnić nadpisanie specyficznych selektorów
 * 2. Umożliwić szybkie prototypowanie
 * 3. Zachować spójność z filozofią utility-first (jak Tailwind)
 * 
 * Best Practice: Używaj utilities dla małych adjustów, nie całych komponentów
 */



