/* 
 * Karakal Responsive Grid System
 * A mobile-first CSS grid implementation with responsive breakpoints
 */

/* -------------------------------- 
   Responsive Grid System
-------------------------------- */

/* 
   Breakpoints:
   - xs: 0-575px (default, mobile portrait)
   - sm: 576px-767px (mobile landscape)
   - md: 768px-991px (tablet)
   - lg: 992px-1199px (desktop)
   - xl: 1200px+ (large desktop)
*/

:root {
    /* Grid configuration */
    --grid-columns: 12;
    --grid-gutter: 1.5rem;
    --container-padding: 1rem;
    
    /* Breakpoint values */
    --breakpoint-xs: 0;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    
    /* Container max-widths */
    --container-sm: 540px;
    --container-md: 720px;
    --container-lg: 960px;
    --container-xl: 1140px;
}

/* Container */
.container {
    width: 100%;
    padding-right: var(--container-padding);
    padding-left: var(--container-padding);
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: var(--container-sm);
    }
}

@media (min-width: 768px) {
    .container {
        max-width: var(--container-md);
    }
}

@media (min-width: 992px) {
    .container {
        max-width: var(--container-lg);
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: var(--container-xl);
    }
}

.container-fluid {
    width: 100%;
    padding-right: var(--container-padding);
    padding-left: var(--container-padding);
    margin-right: auto;
    margin-left: auto;
}

/* Row and column setup */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: calc(-0.5 * var(--grid-gutter));
    margin-left: calc(-0.5 * var(--grid-gutter));
}

.row-no-gutters {
    margin-right: 0;
    margin-left: 0;
}

.row-no-gutters > .col,
.row-no-gutters > [class*="col-"] {
    padding-right: 0;
    padding-left: 0;
}

.col,
[class*="col-"] {
    position: relative;
    width: 100%;
    padding-right: calc(var(--grid-gutter) * 0.5);
    padding-left: calc(var(--grid-gutter) * 0.5);
}

/* Flex column utilities */
.col {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
}

.col-auto {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
}

/* Column classes for extra small screens (default) */
.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* Column order */
.order-first { order: -1; }
.order-last { order: 13; }
.order-0 { order: 0; }
.order-1 { order: 1; }
.order-2 { order: 2; }
.order-3 { order: 3; }
.order-4 { order: 4; }
.order-5 { order: 5; }
.order-6 { order: 6; }
.order-7 { order: 7; }
.order-8 { order: 8; }
.order-9 { order: 9; }
.order-10 { order: 10; }
.order-11 { order: 11; }
.order-12 { order: 12; }

/* Column offsets */
.offset-1 { margin-left: 8.333333%; }
.offset-2 { margin-left: 16.666667%; }
.offset-3 { margin-left: 25%; }
.offset-4 { margin-left: 33.333333%; }
.offset-5 { margin-left: 41.666667%; }
.offset-6 { margin-left: 50%; }
.offset-7 { margin-left: 58.333333%; }
.offset-8 { margin-left: 66.666667%; }
.offset-9 { margin-left: 75%; }
.offset-10 { margin-left: 83.333333%; }
.offset-11 { margin-left: 91.666667%; }

/* Small screens (sm) */
@media (min-width: 576px) {
    .col-sm { flex-basis: 0; flex-grow: 1; max-width: 100%; }
    .col-sm-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
    .col-sm-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-sm-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
    .col-sm-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-sm-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
    .col-sm-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-sm-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-sm-9 { flex: 0 0 75%; max-width: 75%; }
    .col-sm-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-sm-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
    
    .order-sm-first { order: -1; }
    .order-sm-last { order: 13; }
    .order-sm-0 { order: 0; }
    .order-sm-1 { order: 1; }
    .order-sm-2 { order: 2; }
    .order-sm-3 { order: 3; }
    .order-sm-4 { order: 4; }
    .order-sm-5 { order: 5; }
    .order-sm-6 { order: 6; }
    .order-sm-7 { order: 7; }
    .order-sm-8 { order: 8; }
    .order-sm-9 { order: 9; }
    .order-sm-10 { order: 10; }
    .order-sm-11 { order: 11; }
    .order-sm-12 { order: 12; }
    
    .offset-sm-0 { margin-left: 0; }
    .offset-sm-1 { margin-left: 8.333333%; }
    .offset-sm-2 { margin-left: 16.666667%; }
    .offset-sm-3 { margin-left: 25%; }
    .offset-sm-4 { margin-left: 33.333333%; }
    .offset-sm-5 { margin-left: 41.666667%; }
    .offset-sm-6 { margin-left: 50%; }
    .offset-sm-7 { margin-left: 58.333333%; }
    .offset-sm-8 { margin-left: 66.666667%; }
    .offset-sm-9 { margin-left: 75%; }
    .offset-sm-10 { margin-left: 83.333333%; }
    .offset-sm-11 { margin-left: 91.666667%; }
}

/* Medium screens (md) */
@media (min-width: 768px) {
    .col-md { flex-basis: 0; flex-grow: 1; max-width: 100%; }
    .col-md-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
    .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
    
    .order-md-first { order: -1; }
    .order-md-last { order: 13; }
    .order-md-0 { order: 0; }
    .order-md-1 { order: 1; }
    .order-md-2 { order: 2; }
    .order-md-3 { order: 3; }
    .order-md-4 { order: 4; }
    .order-md-5 { order: 5; }
    .order-md-6 { order: 6; }
    .order-md-7 { order: 7; }
    .order-md-8 { order: 8; }
    .order-md-9 { order: 9; }
    .order-md-10 { order: 10; }
    .order-md-11 { order: 11; }
    .order-md-12 { order: 12; }
    
    .offset-md-0 { margin-left: 0; }
    .offset-md-1 { margin-left: 8.333333%; }
    .offset-md-2 { margin-left: 16.666667%; }
    .offset-md-3 { margin-left: 25%; }
    .offset-md-4 { margin-left: 33.333333%; }
    .offset-md-5 { margin-left: 41.666667%; }
    .offset-md-6 { margin-left: 50%; }
    .offset-md-7 { margin-left: 58.333333%; }
    .offset-md-8 { margin-left: 66.666667%; }
    .offset-md-9 { margin-left: 75%; }
    .offset-md-10 { margin-left: 83.333333%; }
    .offset-md-11 { margin-left: 91.666667%; }
}

/* Large screens (lg) */
@media (min-width: 992px) {
    .col-lg { flex-basis: 0; flex-grow: 1; max-width: 100%; }
    .col-lg-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
    .col-lg-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
    .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-lg-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
    
    .order-lg-first { order: -1; }
    .order-lg-last { order: 13; }
    .order-lg-0 { order: 0; }
    .order-lg-1 { order: 1; }
    .order-lg-2 { order: 2; }
    .order-lg-3 { order: 3; }
    .order-lg-4 { order: 4; }
    .order-lg-5 { order: 5; }
    .order-lg-6 { order: 6; }
    .order-lg-7 { order: 7; }
    .order-lg-8 { order: 8; }
    .order-lg-9 { order: 9; }
    .order-lg-10 { order: 10; }
    .order-lg-11 { order: 11; }
    .order-lg-12 { order: 12; }
    
    .offset-lg-0 { margin-left: 0; }
    .offset-lg-1 { margin-left: 8.333333%; }
    .offset-lg-2 { margin-left: 16.666667%; }
    .offset-lg-3 { margin-left: 25%; }
    .offset-lg-4 { margin-left: 33.333333%; }
    .offset-lg-5 { margin-left: 41.666667%; }
    .offset-lg-6 { margin-left: 50%; }
    .offset-lg-7 { margin-left: 58.333333%; }
    .offset-lg-8 { margin-left: 66.666667%; }
    .offset-lg-9 { margin-left: 75%; }
    .offset-lg-10 { margin-left: 83.333333%; }
    .offset-lg-11 { margin-left: 91.666667%; }
}

/* Extra large screens (xl) */
@media (min-width: 1200px) {
    .col-xl { flex-basis: 0; flex-grow: 1; max-width: 100%; }
    .col-xl-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
    .col-xl-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-xl-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-xl-3 { flex: 0 0 25%; max-width: 25%; }
    .col-xl-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-xl-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-xl-6 { flex: 0 0 50%; max-width: 50%; }
    .col-xl-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-xl-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-xl-9 { flex: 0 0 75%; max-width: 75%; }
    .col-xl-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-xl-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-xl-12 { flex: 0 0 100%; max-width: 100%; }
    
    .order-xl-first { order: -1; }
    .order-xl-last { order: 13; }
    .order-xl-0 { order: 0; }
    .order-xl-1 { order: 1; }
    .order-xl-2 { order: 2; }
    .order-xl-3 { order: 3; }
    .order-xl-4 { order: 4; }
    .order-xl-5 { order: 5; }
    .order-xl-6 { order: 6; }
    .order-xl-7 { order: 7; }
    .order-xl-8 { order: 8; }
    .order-xl-9 { order: 9; }
    .order-xl-10 { order: 10; }
    .order-xl-11 { order: 11; }
    .order-xl-12 { order: 12; }
    
    .offset-xl-0 { margin-left: 0; }
    .offset-xl-1 { margin-left: 8.333333%; }
    .offset-xl-2 { margin-left: 16.666667%; }
    .offset-xl-3 { margin-left: 25%; }
    .offset-xl-4 { margin-left: 33.333333%; }
    .offset-xl-5 { margin-left: 41.666667%; }
    .offset-xl-6 { margin-left: 50%; }
    .offset-xl-7 { margin-left: 58.333333%; }
    .offset-xl-8 { margin-left: 66.666667%; }
    .offset-xl-9 { margin-left: 75%; }
    .offset-xl-10 { margin-left: 83.333333%; }
    .offset-xl-11 { margin-left: 91.666667%; }
}

/* -------------------------------- 
   Flex utilities for responsive layouts
-------------------------------- */

/* Basic flex */
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }

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

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

/* Flex justify content */
.justify-content-start { justify-content: flex-start; }
.justify-content-end { justify-content: flex-end; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-around { justify-content: space-around; }
.justify-content-evenly { justify-content: space-evenly; }

/* Flex align items */
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }
.align-items-center { align-items: center; }
.align-items-baseline { align-items: baseline; }
.align-items-stretch { align-items: stretch; }

/* Flex align content */
.align-content-start { align-content: flex-start; }
.align-content-end { align-content: flex-end; }
.align-content-center { align-content: center; }
.align-content-between { align-content: space-between; }
.align-content-around { align-content: space-around; }
.align-content-stretch { align-content: stretch; }

/* Flex align self */
.align-self-auto { align-self: auto; }
.align-self-start { align-self: flex-start; }
.align-self-end { align-self: flex-end; }
.align-self-center { align-self: center; }
.align-self-baseline { align-self: baseline; }
.align-self-stretch { align-self: stretch; }

/* Flex responsive utilities */
@media (min-width: 576px) {
    .d-sm-flex { display: flex; }
    .d-sm-inline-flex { display: inline-flex; }
    .flex-sm-row { flex-direction: row; }
    .flex-sm-row-reverse { flex-direction: row-reverse; }
    .flex-sm-column { flex-direction: column; }
    .flex-sm-column-reverse { flex-direction: column-reverse; }
    .flex-sm-wrap { flex-wrap: wrap; }
    .flex-sm-nowrap { flex-wrap: nowrap; }
    .flex-sm-wrap-reverse { flex-wrap: wrap-reverse; }
    .justify-content-sm-start { justify-content: flex-start; }
    .justify-content-sm-end { justify-content: flex-end; }
    .justify-content-sm-center { justify-content: center; }
    .justify-content-sm-between { justify-content: space-between; }
    .justify-content-sm-around { justify-content: space-around; }
    .justify-content-sm-evenly { justify-content: space-evenly; }
    .align-items-sm-start { align-items: flex-start; }
    .align-items-sm-end { align-items: flex-end; }
    .align-items-sm-center { align-items: center; }
    .align-items-sm-baseline { align-items: baseline; }
    .align-items-sm-stretch { align-items: stretch; }
}

@media (min-width: 768px) {
    .d-md-flex { display: flex; }
    .d-md-inline-flex { display: inline-flex; }
    .flex-md-row { flex-direction: row; }
    .flex-md-row-reverse { flex-direction: row-reverse; }
    .flex-md-column { flex-direction: column; }
    .flex-md-column-reverse { flex-direction: column-reverse; }
    .flex-md-wrap { flex-wrap: wrap; }
    .flex-md-nowrap { flex-wrap: nowrap; }
    .flex-md-wrap-reverse { flex-wrap: wrap-reverse; }
    .justify-content-md-start { justify-content: flex-start; }
    .justify-content-md-end { justify-content: flex-end; }
    .justify-content-md-center { justify-content: center; }
    .justify-content-md-between { justify-content: space-between; }
    .justify-content-md-around { justify-content: space-around; }
    .justify-content-md-evenly { justify-content: space-evenly; }
    .align-items-md-start { align-items: flex-start; }
    .align-items-md-end { align-items: flex-end; }
    .align-items-md-center { align-items: center; }
    .align-items-md-baseline { align-items: baseline; }
    .align-items-md-stretch { align-items: stretch; }
}

@media (min-width: 992px) {
    .d-lg-flex { display: flex; }
    .d-lg-inline-flex { display: inline-flex; }
    .flex-lg-row { flex-direction: row; }
    .flex-lg-row-reverse { flex-direction: row-reverse; }
    .flex-lg-column { flex-direction: column; }
    .flex-lg-column-reverse { flex-direction: column-reverse; }
    .flex-lg-wrap { flex-wrap: wrap; }
    .flex-lg-nowrap { flex-wrap: nowrap; }
    .flex-lg-wrap-reverse { flex-wrap: wrap-reverse; }
    .justify-content-lg-start { justify-content: flex-start; }
    .justify-content-lg-end { justify-content: flex-end; }
    .justify-content-lg-center { justify-content: center; }
    .justify-content-lg-between { justify-content: space-between; }
    .justify-content-lg-around { justify-content: space-around; }
    .justify-content-lg-evenly { justify-content: space-evenly; }
    .align-items-lg-start { align-items: flex-start; }
    .align-items-lg-end { align-items: flex-end; }
    .align-items-lg-center { align-items: center; }
    .align-items-lg-baseline { align-items: baseline; }
    .align-items-lg-stretch { align-items: stretch; }
}

@media (min-width: 1200px) {
    .d-xl-flex { display: flex; }
    .d-xl-inline-flex { display: inline-flex; }
    .flex-xl-row { flex-direction: row; }
    .flex-xl-row-reverse { flex-direction: row-reverse; }
    .flex-xl-column { flex-direction: column; }
    .flex-xl-column-reverse { flex-direction: column-reverse; }
    .flex-xl-wrap { flex-wrap: wrap; }
    .flex-xl-nowrap { flex-wrap: nowrap; }
    .flex-xl-wrap-reverse { flex-wrap: wrap-reverse; }
    .justify-content-xl-start { justify-content: flex-start; }
    .justify-content-xl-end { justify-content: flex-end; }
    .justify-content-xl-center { justify-content: center; }
    .justify-content-xl-between { justify-content: space-between; }
    .justify-content-xl-around { justify-content: space-around; }
    .justify-content-xl-evenly { justify-content: space-evenly; }
    .align-items-xl-start { align-items: flex-start; }
    .align-items-xl-end { align-items: flex-end; }
    .align-items-xl-center { align-items: center; }
    .align-items-xl-baseline { align-items: baseline; }
    .align-items-xl-stretch { align-items: stretch; }
}

/* -------------------------------- 
   Display utilities for responsive layouts
-------------------------------- */

.d-none { display: none; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-block { display: block; }
.d-table { display: table; }
.d-table-row { display: table-row; }
.d-table-cell { display: table-cell; }

@media (min-width: 576px) {
    .d-sm-none { display: none; }
    .d-sm-inline { display: inline; }
    .d-sm-inline-block { display: inline-block; }
    .d-sm-block { display: block; }
    .d-sm-table { display: table; }
    .d-sm-table-row { display: table-row; }
    .d-sm-table-cell { display: table-cell; }
}

@media (min-width: 768px) {
    .d-md-none { display: none; }
    .d-md-inline { display: inline; }
    .d-md-inline-block { display: inline-block; }
    .d-md-block { display: block; }
    .d-md-table { display: table; }
    .d-md-table-row { display: table-row; }
    .d-md-table-cell { display: table-cell; }
}

@media (min-width: 992px) {
    .d-lg-none { display: none; }
    .d-lg-inline { display: inline; }
    .d-lg-inline-block { display: inline-block; }
    .d-lg-block { display: block; }
    .d-lg-table { display: table; }
    .d-lg-table-row { display: table-row; }
    .d-lg-table-cell { display: table-cell; }
}

@media (min-width: 1200px) {
    .d-xl-none { display: none; }
    .d-xl-inline { display: inline; }
    .d-xl-inline-block { display: inline-block; }
    .d-xl-block { display: block; }
    .d-xl-table { display: table; }
    .d-xl-table-row { display: table-row; }
    .d-xl-table-cell { display: table-cell; }
}

/* -------------------------------- 
   Touch-optimized controls for mobile 
-------------------------------- */

@media (max-width: 768px) {
    /* Increase touchable area for interactive elements */
    .touch-target {
        min-height: 48px;
        min-width: 48px;
    }
    
    /* Add spacing for tappable items */
    .touch-list > * {
        margin-bottom: 0.5rem;
    }
    
    /* Make form controls easier to tap */
    .touch-form .form-input,
    .touch-form .form-select,
    .touch-form .form-checkbox,
    .touch-form .form-radio,
    .touch-form .btn {
        min-height: 44px;
    }
    
    /* Ensure buttons have proper spacing */
    .touch-buttons .btn + .btn {
        margin-left: 0.75rem;
    }
    
    /* Adjust checkbox/radio sizes for touch */
    .touch-form .form-checkbox,
    .touch-form .form-radio {
        transform: scale(1.2);
        margin-right: 0.75rem;
    }
}

/* -------------------------------- 
   Responsive spacers 
-------------------------------- */

/* Responsive margins and paddings */
@media (max-width: 576px) {
    .xs-m-0 { margin: 0 !important; }
    .xs-mt-0 { margin-top: 0 !important; }
    .xs-mr-0 { margin-right: 0 !important; }
    .xs-mb-0 { margin-bottom: 0 !important; }
    .xs-ml-0 { margin-left: 0 !important; }
    .xs-p-0 { padding: 0 !important; }
    .xs-pt-0 { padding-top: 0 !important; }
    .xs-pr-0 { padding-right: 0 !important; }
    .xs-pb-0 { padding-bottom: 0 !important; }
    .xs-pl-0 { padding-left: 0 !important; }
    
    .xs-m-1 { margin: 0.25rem !important; }
    .xs-mt-1 { margin-top: 0.25rem !important; }
    .xs-mr-1 { margin-right: 0.25rem !important; }
    .xs-mb-1 { margin-bottom: 0.25rem !important; }
    .xs-ml-1 { margin-left: 0.25rem !important; }
    .xs-p-1 { padding: 0.25rem !important; }
    .xs-pt-1 { padding-top: 0.25rem !important; }
    .xs-pr-1 { padding-right: 0.25rem !important; }
    .xs-pb-1 { padding-bottom: 0.25rem !important; }
    .xs-pl-1 { padding-left: 0.25rem !important; }
    
    .xs-m-2 { margin: 0.5rem !important; }
    .xs-mt-2 { margin-top: 0.5rem !important; }
    .xs-mr-2 { margin-right: 0.5rem !important; }
    .xs-mb-2 { margin-bottom: 0.5rem !important; }
    .xs-ml-2 { margin-left: 0.5rem !important; }
    .xs-p-2 { padding: 0.5rem !important; }
    .xs-pt-2 { padding-top: 0.5rem !important; }
    .xs-pr-2 { padding-right: 0.5rem !important; }
    .xs-pb-2 { padding-bottom: 0.5rem !important; }
    .xs-pl-2 { padding-left: 0.5rem !important; }
    
    .xs-m-3 { margin: 1rem !important; }
    .xs-mt-3 { margin-top: 1rem !important; }
    .xs-mr-3 { margin-right: 1rem !important; }
    .xs-mb-3 { margin-bottom: 1rem !important; }
    .xs-ml-3 { margin-left: 1rem !important; }
    .xs-p-3 { padding: 1rem !important; }
    .xs-pt-3 { padding-top: 1rem !important; }
    .xs-pr-3 { padding-right: 1rem !important; }
    .xs-pb-3 { padding-bottom: 1rem !important; }
    .xs-pl-3 { padding-left: 1rem !important; }
}

/* Small devices */
@media (min-width: 576px) and (max-width: 767.98px) {
    .sm-m-0 { margin: 0 !important; }
    .sm-mt-0 { margin-top: 0 !important; }
    .sm-mr-0 { margin-right: 0 !important; }
    .sm-mb-0 { margin-bottom: 0 !important; }
    .sm-ml-0 { margin-left: 0 !important; }
    .sm-p-0 { padding: 0 !important; }
    .sm-pt-0 { padding-top: 0 !important; }
    .sm-pr-0 { padding-right: 0 !important; }
    .sm-pb-0 { padding-bottom: 0 !important; }
    .sm-pl-0 { padding-left: 0 !important; }
    
    .sm-m-1 { margin: 0.25rem !important; }
    .sm-mt-1 { margin-top: 0.25rem !important; }
    .sm-mr-1 { margin-right: 0.25rem !important; }
    .sm-mb-1 { margin-bottom: 0.25rem !important; }
    .sm-ml-1 { margin-left: 0.25rem !important; }
    .sm-p-1 { padding: 0.25rem !important; }
    .sm-pt-1 { padding-top: 0.25rem !important; }
    .sm-pr-1 { padding-right: 0.25rem !important; }
    .sm-pb-1 { padding-bottom: 0.25rem !important; }
    .sm-pl-1 { padding-left: 0.25rem !important; }
    
    .sm-m-2 { margin: 0.5rem !important; }
    .sm-mt-2 { margin-top: 0.5rem !important; }
    .sm-mr-2 { margin-right: 0.5rem !important; }
    .sm-mb-2 { margin-bottom: 0.5rem !important; }
    .sm-ml-2 { margin-left: 0.5rem !important; }
    .sm-p-2 { padding: 0.5rem !important; }
    .sm-pt-2 { padding-top: 0.5rem !important; }
    .sm-pr-2 { padding-right: 0.5rem !important; }
    .sm-pb-2 { padding-bottom: 0.5rem !important; }
    .sm-pl-2 { padding-left: 0.5rem !important; }
    
    .sm-m-3 { margin: 1rem !important; }
    .sm-mt-3 { margin-top: 1rem !important; }
    .sm-mr-3 { margin-right: 1rem !important; }
    .sm-mb-3 { margin-bottom: 1rem !important; }
    .sm-ml-3 { margin-left: 1rem !important; }
    .sm-p-3 { padding: 1rem !important; }
    .sm-pt-3 { padding-top: 1rem !important; }
    .sm-pr-3 { padding-right: 1rem !important; }
    .sm-pb-3 { padding-bottom: 1rem !important; }
    .sm-pl-3 { padding-left: 1rem !important; }
}