/**
 * SADO Component System
 * Bootstrap-like utility classes with sado- prefix
 *
 * Includes: Spacing, Display, Flex, Grid, Borders, Shadows, etc.
 */

/* ========================================
   Spacing - Margin
   Values: 0, 1(0.25rem), 2(0.5rem), 3(1rem), 4(1.5rem), 5(3rem), auto
   ======================================== */
.sado-m-0 { margin: 0 !important; }
.sado-m-1 { margin: 0.25rem !important; }
.sado-m-2 { margin: 0.5rem !important; }
.sado-m-3 { margin: 1rem !important; }
.sado-m-4 { margin: 1.5rem !important; }
.sado-m-5 { margin: 3rem !important; }
.sado-m-auto { margin: auto !important; }

.sado-mt-0 { margin-top: 0 !important; }
.sado-mt-1 { margin-top: 0.25rem !important; }
.sado-mt-2 { margin-top: 0.5rem !important; }
.sado-mt-3 { margin-top: 1rem !important; }
.sado-mt-4 { margin-top: 1.5rem !important; }
.sado-mt-5 { margin-top: 3rem !important; }
.sado-mt-auto { margin-top: auto !important; }

.sado-mb-0 { margin-bottom: 0 !important; }
.sado-mb-1 { margin-bottom: 0.25rem !important; }
.sado-mb-2 { margin-bottom: 0.5rem !important; }
.sado-mb-3 { margin-bottom: 1rem !important; }
.sado-mb-4 { margin-bottom: 1.5rem !important; }
.sado-mb-5 { margin-bottom: 3rem !important; }
.sado-mb-auto { margin-bottom: auto !important; }

.sado-ms-0 { margin-left: 0 !important; }
.sado-ms-1 { margin-left: 0.25rem !important; }
.sado-ms-2 { margin-left: 0.5rem !important; }
.sado-ms-3 { margin-left: 1rem !important; }
.sado-ms-4 { margin-left: 1.5rem !important; }
.sado-ms-5 { margin-left: 3rem !important; }
.sado-ms-auto { margin-left: auto !important; }

.sado-me-0 { margin-right: 0 !important; }
.sado-me-1 { margin-right: 0.25rem !important; }
.sado-me-2 { margin-right: 0.5rem !important; }
.sado-me-3 { margin-right: 1rem !important; }
.sado-me-4 { margin-right: 1.5rem !important; }
.sado-me-5 { margin-right: 3rem !important; }
.sado-me-auto { margin-right: auto !important; }

.sado-mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
.sado-mx-1 { margin-left: 0.25rem !important; margin-right: 0.25rem !important; }
.sado-mx-2 { margin-left: 0.5rem !important; margin-right: 0.5rem !important; }
.sado-mx-3 { margin-left: 1rem !important; margin-right: 1rem !important; }
.sado-mx-4 { margin-left: 1.5rem !important; margin-right: 1.5rem !important; }
.sado-mx-5 { margin-left: 3rem !important; margin-right: 3rem !important; }
.sado-mx-auto { margin-left: auto !important; margin-right: auto !important; }

.sado-my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.sado-my-1 { margin-top: 0.25rem !important; margin-bottom: 0.25rem !important; }
.sado-my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
.sado-my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.sado-my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.sado-my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.sado-my-auto { margin-top: auto !important; margin-bottom: auto !important; }

/* ========================================
   Spacing - Padding
   ======================================== */
.sado-p-0 { padding: 0 !important; }
.sado-p-1 { padding: 0.25rem !important; }
.sado-p-2 { padding: 0.5rem !important; }
.sado-p-3 { padding: 1rem !important; }
.sado-p-4 { padding: 1.5rem !important; }
.sado-p-5 { padding: 3rem !important; }

.sado-pt-0 { padding-top: 0 !important; }
.sado-pt-1 { padding-top: 0.25rem !important; }
.sado-pt-2 { padding-top: 0.5rem !important; }
.sado-pt-3 { padding-top: 1rem !important; }
.sado-pt-4 { padding-top: 1.5rem !important; }
.sado-pt-5 { padding-top: 3rem !important; }

.sado-pb-0 { padding-bottom: 0 !important; }
.sado-pb-1 { padding-bottom: 0.25rem !important; }
.sado-pb-2 { padding-bottom: 0.5rem !important; }
.sado-pb-3 { padding-bottom: 1rem !important; }
.sado-pb-4 { padding-bottom: 1.5rem !important; }
.sado-pb-5 { padding-bottom: 3rem !important; }

.sado-ps-0 { padding-left: 0 !important; }
.sado-ps-1 { padding-left: 0.25rem !important; }
.sado-ps-2 { padding-left: 0.5rem !important; }
.sado-ps-3 { padding-left: 1rem !important; }
.sado-ps-4 { padding-left: 1.5rem !important; }
.sado-ps-5 { padding-left: 3rem !important; }

.sado-pe-0 { padding-right: 0 !important; }
.sado-pe-1 { padding-right: 0.25rem !important; }
.sado-pe-2 { padding-right: 0.5rem !important; }
.sado-pe-3 { padding-right: 1rem !important; }
.sado-pe-4 { padding-right: 1.5rem !important; }
.sado-pe-5 { padding-right: 3rem !important; }

.sado-px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.sado-px-1 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
.sado-px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.sado-px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.sado-px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.sado-px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }

.sado-py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.sado-py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.sado-py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.sado-py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.sado-py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.sado-py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

/* ========================================
   Display
   ======================================== */
.sado-d-none { display: none !important; }
.sado-d-inline { display: inline !important; }
.sado-d-inline-block { display: inline-block !important; }
.sado-d-block { display: block !important; }
.sado-d-flex { display: flex !important; }
.sado-d-inline-flex { display: inline-flex !important; }
.sado-d-grid { display: grid !important; }
.sado-d-table { display: table !important; }

/* ========================================
   Flexbox
   ======================================== */
.sado-flex-row { flex-direction: row !important; }
.sado-flex-column { flex-direction: column !important; }
.sado-flex-row-reverse { flex-direction: row-reverse !important; }
.sado-flex-column-reverse { flex-direction: column-reverse !important; }

.sado-flex-wrap { flex-wrap: wrap !important; }
.sado-flex-nowrap { flex-wrap: nowrap !important; }
.sado-flex-wrap-reverse { flex-wrap: wrap-reverse !important; }

.sado-justify-start { justify-content: flex-start !important; }
.sado-justify-end { justify-content: flex-end !important; }
.sado-justify-center { justify-content: center !important; }
.sado-justify-between { justify-content: space-between !important; }
.sado-justify-around { justify-content: space-around !important; }
.sado-justify-evenly { justify-content: space-evenly !important; }

.sado-align-start { align-items: flex-start !important; }
.sado-align-end { align-items: flex-end !important; }
.sado-align-center { align-items: center !important; }
.sado-align-baseline { align-items: baseline !important; }
.sado-align-stretch { align-items: stretch !important; }

.sado-align-self-start { align-self: flex-start !important; }
.sado-align-self-end { align-self: flex-end !important; }
.sado-align-self-center { align-self: center !important; }
.sado-align-self-stretch { align-self: stretch !important; }

.sado-flex-grow-0 { flex-grow: 0 !important; }
.sado-flex-grow-1 { flex-grow: 1 !important; }
.sado-flex-shrink-0 { flex-shrink: 0 !important; }
.sado-flex-shrink-1 { flex-shrink: 1 !important; }

/* ========================================
   Gap (Flex/Grid)
   ======================================== */
.sado-gap-0 { gap: 0 !important; }
.sado-gap-1 { gap: 0.25rem !important; }
.sado-gap-2 { gap: 0.5rem !important; }
.sado-gap-3 { gap: 1rem !important; }
.sado-gap-4 { gap: 1.5rem !important; }
.sado-gap-5 { gap: 3rem !important; }

/* ========================================
   Width & Height
   ======================================== */
.sado-w-25 { width: 25% !important; }
.sado-w-50 { width: 50% !important; }
.sado-w-75 { width: 75% !important; }
.sado-w-100 { width: 100% !important; }
.sado-w-auto { width: auto !important; }

.sado-h-25 { height: 25% !important; }
.sado-h-50 { height: 50% !important; }
.sado-h-75 { height: 75% !important; }
.sado-h-100 { height: 100% !important; }
.sado-h-auto { height: auto !important; }

.sado-mw-100 { max-width: 100% !important; }
.sado-mh-100 { max-height: 100% !important; }
.sado-min-vw-100 { min-width: 100vw !important; }
.sado-min-vh-100 { min-height: 100vh !important; }
.sado-vw-100 { width: 100vw !important; }
.sado-vh-100 { height: 100vh !important; }

/* ========================================
   Borders
   ======================================== */
.sado-border { border: 1px solid var(--sado-gray-300) !important; }
.sado-border-0 { border: 0 !important; }
.sado-border-top { border-top: 1px solid var(--sado-gray-300) !important; }
.sado-border-bottom { border-bottom: 1px solid var(--sado-gray-300) !important; }
.sado-border-start { border-left: 1px solid var(--sado-gray-300) !important; }
.sado-border-end { border-right: 1px solid var(--sado-gray-300) !important; }

.sado-border-1 { border-width: 1px !important; }
.sado-border-2 { border-width: 2px !important; }
.sado-border-3 { border-width: 3px !important; }
.sado-border-4 { border-width: 4px !important; }
.sado-border-5 { border-width: 5px !important; }

/* ========================================
   Border Radius
   ======================================== */
.sado-rounded { border-radius: 0.375rem !important; }
.sado-rounded-0 { border-radius: 0 !important; }
.sado-rounded-1 { border-radius: 0.25rem !important; }
.sado-rounded-2 { border-radius: 0.375rem !important; }
.sado-rounded-3 { border-radius: 0.5rem !important; }
.sado-rounded-4 { border-radius: 0.75rem !important; }
.sado-rounded-5 { border-radius: 1rem !important; }
.sado-rounded-circle { border-radius: 50% !important; }
.sado-rounded-pill { border-radius: 50rem !important; }

.sado-rounded-top { border-top-left-radius: 0.375rem !important; border-top-right-radius: 0.375rem !important; }
.sado-rounded-bottom { border-bottom-left-radius: 0.375rem !important; border-bottom-right-radius: 0.375rem !important; }
.sado-rounded-start { border-top-left-radius: 0.375rem !important; border-bottom-left-radius: 0.375rem !important; }
.sado-rounded-end { border-top-right-radius: 0.375rem !important; border-bottom-right-radius: 0.375rem !important; }

/* ========================================
   Shadows
   ======================================== */
.sado-shadow-none { box-shadow: none !important; }
.sado-shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; }
.sado-shadow { box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important; }
.sado-shadow-lg { box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important; }

/* ========================================
   Position
   ======================================== */
.sado-position-static { position: static !important; }
.sado-position-relative { position: relative !important; }
.sado-position-absolute { position: absolute !important; }
.sado-position-fixed { position: fixed !important; }
.sado-position-sticky { position: sticky !important; }

.sado-top-0 { top: 0 !important; }
.sado-top-50 { top: 50% !important; }
.sado-top-100 { top: 100% !important; }
.sado-bottom-0 { bottom: 0 !important; }
.sado-bottom-50 { bottom: 50% !important; }
.sado-bottom-100 { bottom: 100% !important; }
.sado-start-0 { left: 0 !important; }
.sado-start-50 { left: 50% !important; }
.sado-start-100 { left: 100% !important; }
.sado-end-0 { right: 0 !important; }
.sado-end-50 { right: 50% !important; }
.sado-end-100 { right: 100% !important; }

.sado-translate-middle { transform: translate(-50%, -50%) !important; }
.sado-translate-middle-x { transform: translateX(-50%) !important; }
.sado-translate-middle-y { transform: translateY(-50%) !important; }

/* ========================================
   Overflow
   ======================================== */
.sado-overflow-auto { overflow: auto !important; }
.sado-overflow-hidden { overflow: hidden !important; }
.sado-overflow-visible { overflow: visible !important; }
.sado-overflow-scroll { overflow: scroll !important; }
.sado-overflow-x-auto { overflow-x: auto !important; }
.sado-overflow-y-auto { overflow-y: auto !important; }

/* ========================================
   Visibility
   ======================================== */
.sado-visible { visibility: visible !important; }
.sado-invisible { visibility: hidden !important; }

/* ========================================
   Opacity
   ======================================== */
.sado-opacity-0 { opacity: 0 !important; }
.sado-opacity-25 { opacity: 0.25 !important; }
.sado-opacity-50 { opacity: 0.5 !important; }
.sado-opacity-75 { opacity: 0.75 !important; }
.sado-opacity-100 { opacity: 1 !important; }

/* ========================================
   Z-Index
   ======================================== */
.sado-z-0 { z-index: 0 !important; }
.sado-z-1 { z-index: 1 !important; }
.sado-z-2 { z-index: 2 !important; }
.sado-z-3 { z-index: 3 !important; }
.sado-z-10 { z-index: 10 !important; }
.sado-z-100 { z-index: 100 !important; }
.sado-z-1000 { z-index: 1000 !important; }
.sado-z-auto { z-index: auto !important; }

/* ========================================
   Cursor
   ======================================== */
.sado-cursor-pointer { cursor: pointer !important; }
.sado-cursor-default { cursor: default !important; }
.sado-cursor-not-allowed { cursor: not-allowed !important; }
.sado-cursor-wait { cursor: wait !important; }
.sado-cursor-move { cursor: move !important; }

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

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

/* ========================================
   Transitions
   ======================================== */
.sado-transition { transition: all 0.2s ease !important; }
.sado-transition-fast { transition: all 0.1s ease !important; }
.sado-transition-slow { transition: all 0.3s ease !important; }
.sado-transition-none { transition: none !important; }

/* ========================================
   Card Component
   ======================================== */
.sado-card {
    background-color: var(--sado-white);
    border: 1px solid var(--sado-gray-200);
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.sado-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--sado-gray-200);
    background-color: var(--sado-gray-100);
}
.sado-card-body {
    padding: 1.25rem;
}
.sado-card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--sado-gray-200);
    background-color: var(--sado-gray-100);
}

/* ========================================
   Alert Component
   ======================================== */
.sado-alert {
    padding: 1rem 1.25rem;
    border-radius: 0.375rem;
    border: 1px solid transparent;
}
.sado-alert-primary {
    background-color: rgba(241, 196, 15, 0.15);
    border-color: var(--sado-primary);
    color: var(--sado-primary-dark);
}
.sado-alert-dark {
    background-color: rgba(51, 51, 51, 0.1);
    border-color: var(--sado-dark);
    color: var(--sado-dark);
}
.sado-alert-success {
    background-color: rgba(40, 167, 69, 0.15);
    border-color: var(--sado-success);
    color: #155724;
}
.sado-alert-danger {
    background-color: rgba(220, 53, 69, 0.15);
    border-color: var(--sado-danger);
    color: #721c24;
}
.sado-alert-warning {
    background-color: rgba(255, 193, 7, 0.15);
    border-color: var(--sado-warning);
    color: #856404;
}
.sado-alert-info {
    background-color: rgba(23, 162, 184, 0.15);
    border-color: var(--sado-info);
    color: #0c5460;
}
