/**
 * V2 Utility Classes
 * 
 * Bootstrap 5-style утилитарные классы для быстрой верстки.
 * Система отступов: 0=0, 1=4px, 2=8px, 3=16px, 4=24px, 5=32px
 */

/* ==========================================================================
   MARGIN
   ========================================================================== */

/* Margin all sides */
.m-0 { margin: 0 !important; }
.m-1 { margin: 4px !important; }
.m-2 { margin: 8px !important; }
.m-3 { margin: 16px !important; }
.m-4 { margin: 24px !important; }
.m-5 { margin: 32px !important; }
.m-auto { margin: auto !important; }

/* Margin top */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 16px !important; }
.mt-4 { margin-top: 24px !important; }
.mt-5 { margin-top: 32px !important; }
.mt-auto { margin-top: auto !important; }

/* Margin bottom */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 24px !important; }
.mb-5 { margin-bottom: 32px !important; }
.mb-auto { margin-bottom: auto !important; }

/* Margin left (start) */
.ms-0, .ml-0 { margin-left: 0 !important; }
.ms-1, .ml-1 { margin-left: 4px !important; }
.ms-2, .ml-2 { margin-left: 8px !important; }
.ms-3, .ml-3 { margin-left: 16px !important; }
.ms-4, .ml-4 { margin-left: 24px !important; }
.ms-5, .ml-5 { margin-left: 32px !important; }
.ms-auto, .ml-auto { margin-left: auto !important; }

/* Margin right (end) */
.me-0, .mr-0 { margin-right: 0 !important; }
.me-1, .mr-1 { margin-right: 4px !important; }
.me-2, .mr-2 { margin-right: 8px !important; }
.me-3, .mr-3 { margin-right: 16px !important; }
.me-4, .mr-4 { margin-right: 24px !important; }
.me-5, .mr-5 { margin-right: 32px !important; }
.me-auto, .mr-auto { margin-right: auto !important; }

/* Margin X (horizontal) */
.mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
.mx-1 { margin-left: 4px !important; margin-right: 4px !important; }
.mx-2 { margin-left: 8px !important; margin-right: 8px !important; }
.mx-3 { margin-left: 16px !important; margin-right: 16px !important; }
.mx-4 { margin-left: 24px !important; margin-right: 24px !important; }
.mx-5 { margin-left: 32px !important; margin-right: 32px !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* Margin Y (vertical) */
.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-1 { margin-top: 4px !important; margin-bottom: 4px !important; }
.my-2 { margin-top: 8px !important; margin-bottom: 8px !important; }
.my-3 { margin-top: 16px !important; margin-bottom: 16px !important; }
.my-4 { margin-top: 24px !important; margin-bottom: 24px !important; }
.my-5 { margin-top: 32px !important; margin-bottom: 32px !important; }
.my-auto { margin-top: auto !important; margin-bottom: auto !important; }

/* ==========================================================================
   PADDING
   ========================================================================== */

/* Padding all sides */
.p-0 { padding: 0 !important; }
.p-1 { padding: 4px !important; }
.p-2 { padding: 8px !important; }
.p-3 { padding: 16px !important; }
.p-4 { padding: 24px !important; }
.p-5 { padding: 32px !important; }

/* Padding top */
.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 4px !important; }
.pt-2 { padding-top: 8px !important; }
.pt-3 { padding-top: 16px !important; }
.pt-4 { padding-top: 24px !important; }
.pt-5 { padding-top: 32px !important; }

/* Padding bottom */
.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 4px !important; }
.pb-2 { padding-bottom: 8px !important; }
.pb-3 { padding-bottom: 16px !important; }
.pb-4 { padding-bottom: 24px !important; }
.pb-5 { padding-bottom: 32px !important; }

/* Padding left (start) */
.ps-0, .pl-0 { padding-left: 0 !important; }
.ps-1, .pl-1 { padding-left: 4px !important; }
.ps-2, .pl-2 { padding-left: 8px !important; }
.ps-3, .pl-3 { padding-left: 16px !important; }
.ps-4, .pl-4 { padding-left: 24px !important; }
.ps-5, .pl-5 { padding-left: 32px !important; }

/* Padding right (end) */
.pe-0, .pr-0 { padding-right: 0 !important; }
.pe-1, .pr-1 { padding-right: 4px !important; }
.pe-2, .pr-2 { padding-right: 8px !important; }
.pe-3, .pr-3 { padding-right: 16px !important; }
.pe-4, .pr-4 { padding-right: 24px !important; }
.pe-5, .pr-5 { padding-right: 32px !important; }

/* Padding X (horizontal) */
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-1 { padding-left: 4px !important; padding-right: 4px !important; }
.px-2 { padding-left: 8px !important; padding-right: 8px !important; }
.px-3 { padding-left: 16px !important; padding-right: 16px !important; }
.px-4 { padding-left: 24px !important; padding-right: 24px !important; }
.px-5 { padding-left: 32px !important; padding-right: 32px !important; }

/* Padding Y (vertical) */
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: 4px !important; padding-bottom: 4px !important; }
.py-2 { padding-top: 8px !important; padding-bottom: 8px !important; }
.py-3 { padding-top: 16px !important; padding-bottom: 16px !important; }
.py-4 { padding-top: 24px !important; padding-bottom: 24px !important; }
.py-5 { padding-top: 32px !important; padding-bottom: 32px !important; }

/* ==========================================================================
   DISPLAY
   ========================================================================== */

.d-none { display: none !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-block { display: block !important; }
.d-grid { display: grid !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }

/* ==========================================================================
   FLEXBOX
   ========================================================================== */

/* Flex direction */
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-row-reverse { flex-direction: row-reverse !important; }
.flex-column-reverse { flex-direction: column-reverse !important; }

/* Flex wrap */
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }

/* Justify content */
.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }
.justify-content-evenly { justify-content: space-evenly !important; }

/* Align items */
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-baseline { align-items: baseline !important; }
.align-items-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-stretch { align-self: stretch !important; }

/* Flex grow/shrink */
.flex-fill { flex: 1 1 auto !important; }
.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; }

/* Gap */
.gap-0 { gap: 0 !important; }
.gap-1 { gap: 4px !important; }
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 16px !important; }
.gap-4 { gap: 24px !important; }
.gap-5 { gap: 32px !important; }

/* ==========================================================================
   TEXT
   ========================================================================== */

.text-start, .text-left { text-align: left !important; }
.text-end, .text-right { text-align: right !important; }
.text-center { text-align: center !important; }

.text-wrap { white-space: normal !important; }
.text-nowrap { white-space: nowrap !important; }
.text-truncate { 
    overflow: hidden !important; 
    text-overflow: ellipsis !important; 
    white-space: nowrap !important; 
}

.text-uppercase { text-transform: uppercase !important; }
.text-lowercase { text-transform: lowercase !important; }
.text-capitalize { text-transform: capitalize !important; }

/* Font weight */
.fw-light { font-weight: 300 !important; }
.fw-normal { font-weight: 400 !important; }
.fw-medium { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 700 !important; }

/* Font size */
.fs-1 { font-size: 2.5rem !important; }
.fs-2 { font-size: 2rem !important; }
.fs-3 { font-size: 1.75rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.fs-6 { font-size: 1rem !important; }
.fs-sm, .small { font-size: 0.875rem !important; }
.fs-xs { font-size: 0.75rem !important; }

/* Text colors (using V2 variables) */
.text-muted { color: var(--v2-text-muted, #94a3b8) !important; }
.text-dim { color: var(--v2-text-dim, #64748b) !important; }
.text-gold { color: var(--v2-gold, #f5c842) !important; }
.text-success { color: var(--v2-green, #10b981) !important; }
.text-danger { color: var(--v2-red, #dc2626) !important; }
.text-info { color: var(--v2-ice-blue, #38bdf8) !important; }
.text-white { color: #fff !important; }

/* ==========================================================================
   WIDTH & HEIGHT
   ========================================================================== */

.w-25 { width: 25% !important; }
.w-50 { width: 50% !important; }
.w-75 { width: 75% !important; }
.w-100 { width: 100% !important; }
.w-auto { width: auto !important; }

.h-25 { height: 25% !important; }
.h-50 { height: 50% !important; }
.h-75 { height: 75% !important; }
.h-100 { height: 100% !important; }
.h-auto { height: auto !important; }

.mw-100 { max-width: 100% !important; }
.mh-100 { max-height: 100% !important; }

.min-vw-100 { min-width: 100vw !important; }
.min-vh-100 { min-height: 100vh !important; }
.vw-100 { width: 100vw !important; }
.vh-100 { height: 100vh !important; }

/* ==========================================================================
   POSITION
   ========================================================================== */

.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; }

.top-0 { top: 0 !important; }
.top-50 { top: 50% !important; }
.top-100 { top: 100% !important; }

.bottom-0 { bottom: 0 !important; }
.bottom-50 { bottom: 50% !important; }
.bottom-100 { bottom: 100% !important; }

.start-0 { left: 0 !important; }
.start-50 { left: 50% !important; }
.start-100 { left: 100% !important; }

.end-0 { right: 0 !important; }
.end-50 { right: 50% !important; }
.end-100 { right: 100% !important; }

.translate-middle { transform: translate(-50%, -50%) !important; }
.translate-middle-x { transform: translateX(-50%) !important; }
.translate-middle-y { transform: translateY(-50%) !important; }

/* ==========================================================================
   BORDERS
   ========================================================================== */

.border { border: 1px solid rgba(255, 255, 255, 0.1) !important; }
.border-0 { border: 0 !important; }
.border-top { border-top: 1px solid rgba(255, 255, 255, 0.1) !important; }
.border-bottom { border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important; }
.border-start { border-left: 1px solid rgba(255, 255, 255, 0.1) !important; }
.border-end { border-right: 1px solid rgba(255, 255, 255, 0.1) !important; }

.rounded { border-radius: var(--v2-radius-md, 12px) !important; }
.rounded-0 { border-radius: 0 !important; }
.rounded-1 { border-radius: var(--v2-radius-sm, 8px) !important; }
.rounded-2 { border-radius: var(--v2-radius-md, 12px) !important; }
.rounded-3 { border-radius: var(--v2-radius-lg, 20px) !important; }
.rounded-circle { border-radius: 50% !important; }
.rounded-pill { border-radius: 50rem !important; }

/* ==========================================================================
   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-y-auto { overflow-y: auto !important; }
.overflow-y-hidden { overflow-y: hidden !important; }

/* ==========================================================================
   VISIBILITY & OPACITY
   ========================================================================== */

.visible { visibility: visible !important; }
.invisible { visibility: hidden !important; }

.opacity-0 { opacity: 0 !important; }
.opacity-25 { opacity: 0.25 !important; }
.opacity-50 { opacity: 0.5 !important; }
.opacity-75 { opacity: 0.75 !important; }
.opacity-100 { opacity: 1 !important; }

/* ==========================================================================
   CURSOR
   ========================================================================== */

.cursor-pointer { cursor: pointer !important; }
.cursor-default { cursor: default !important; }
.cursor-not-allowed { cursor: not-allowed !important; }
.cursor-grab { cursor: grab !important; }

/* ==========================================================================
   USER SELECT
   ========================================================================== */

.user-select-all { user-select: all !important; }
.user-select-auto { user-select: auto !important; }
.user-select-none { user-select: none !important; }

/* ==========================================================================
   POINTER EVENTS
   ========================================================================== */

.pe-none { pointer-events: none !important; }
.pe-auto { pointer-events: auto !important; }

/* ==========================================================================
   SHADOW
   ========================================================================== */

.shadow-none { box-shadow: none !important; }
.shadow-sm { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important; }
.shadow { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25) !important; }
.shadow-lg { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important; }






