// Display
.d-none {
  display: none !important;
}

.d-inline {
  display: inline !important;
}

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

.d-block {
  display: block !important;
}

.d-flex {
  display: flex !important;
}

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

.d-grid {
  display: grid !important;
}

// Flexbox utilities
.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: wrap !important;
}

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

.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;
}

.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-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;
}

// Margin and padding utilities
@each $size,
  $value
    in (
      "0": 0,
      "xs": $spacing-xs,
      "sm": $spacing-sm,
      "md": $spacing-md,
      "lg": $spacing-lg,
      "xl": $spacing-xl,
      "xxl": $spacing-xxl
    )
{
  // Margin
  .m-#{$size} {
    margin: $value !important;
  }

  .mt-#{$size} {
    margin-top: $value !important;
  }

  .mr-#{$size} {
    margin-right: $value !important;
  }

  .mb-#{$size} {
    margin-bottom: $value !important;
  }

  .ml-#{$size} {
    margin-left: $value !important;
  }

  .mx-#{$size} {
    margin-left: $value !important;
    margin-right: $value !important;
  }

  .my-#{$size} {
    margin-top: $value !important;
    margin-bottom: $value !important;
  }

  // Padding
  .p-#{$size} {
    padding: $value !important;
  }

  .pt-#{$size} {
    padding-top: $value !important;
  }

  .pr-#{$size} {
    padding-right: $value !important;
  }

  .pb-#{$size} {
    padding-bottom: $value !important;
  }

  .pl-#{$size} {
    padding-left: $value !important;
  }

  .px-#{$size} {
    padding-left: $value !important;
    padding-right: $value !important;
  }

  .py-#{$size} {
    padding-top: $value !important;
    padding-bottom: $value !important;
  }
}

// Auto margins
.m-auto {
  margin: auto !important;
}

.mt-auto {
  margin-top: auto !important;
}

.mr-auto {
  margin-right: auto !important;
}

.mb-auto {
  margin-bottom: auto !important;
}

.ml-auto {
  margin-left: auto !important;
}

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

.my-auto {
  margin-top: auto !important;
  margin-bottom: auto !important;
}

// Width and height
.w-100 {
  width: 100% !important;
}

.w-75 {
  width: 75% !important;
}

.w-50 {
  width: 50% !important;
}

.w-25 {
  width: 25% !important;
}

.h-100 {
  height: 100% !important;
}

.h-75 {
  height: 75% !important;
}

.h-50 {
  height: 50% !important;
}

.h-25 {
  height: 25% !important;
}

// Text alignment
.text-center {
  text-align: center !important;
}

.text-left {
  text-align: left !important;
}

.text-right {
  text-align: right !important;
}

// Border utilities
.border {
  border: 1px solid $dark-gray-lighter !important;
}

.border-top {
  border-top: 1px solid $dark-gray-lighter !important;
}

.border-right {
  border-right: 1px solid $dark-gray-lighter !important;
}

.border-bottom {
  border-bottom: 1px solid $dark-gray-lighter !important;
}

.border-left {
  border-left: 1px solid $dark-gray-lighter !important;
}

.border-0 {
  border: 0 !important;
}

.border-primary {
  border-color: $primary-color !important;
}

.rounded {
  border-radius: $border-radius-md !important;
}

.rounded-sm {
  border-radius: $border-radius-sm !important;
}

.rounded-lg {
  border-radius: $border-radius-lg !important;
}

.rounded-xl {
  border-radius: $border-radius-xl !important;
}

.rounded-circle {
  border-radius: 50% !important;
}

.rounded-0 {
  border-radius: 0 !important;
}

// Background colors
.bg-primary {
  background-color: $primary-color !important;
}

.bg-dark {
  background-color: $dark-gray !important;
}

.bg-darker {
  background-color: $dark-gray-lighter !important;
}

.bg-darkest {
  background-color: $dark-gray-lightest !important;
}

.bg-light {
  background-color: $lighter-gray !important;
}

.bg-white {
  background-color: $white !important;
}

.bg-transparent {
  background-color: transparent !important;
}

// Visibility
.visible {
  visibility: visible !important;
}

.invisible {
  visibility: hidden !important;
}

// Responsive hiding
@media (max-width: $breakpoint-sm) {
  .d-none-sm {
    display: none !important;
  }
}

@media (max-width: $breakpoint-md) {
  .d-none-md {
    display: none !important;
  }
}

@media (max-width: $breakpoint-lg) {
  .d-none-lg {
    display: none !important;
  }
}

// Shadow utilities
.shadow-none {
  box-shadow: none !important;
}

.shadow-sm {
  box-shadow: $box-shadow-sm !important;
}

.shadow {
  box-shadow: $box-shadow-md !important;
}

.shadow-lg {
  box-shadow: $box-shadow-lg !important;
}

// Position utilities
.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;
}

.fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}

.fixed-bottom {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1030;
}

// Hover utilities
.hover-scale {
  transition: transform 0.3s ease;

  &:hover {
    transform: scale(1.05);
  }
}

.hover-shadow {
  transition: box-shadow 0.3s ease;

  &:hover {
    box-shadow: $box-shadow-lg;
  }
}

.hover-primary {
  transition: color 0.3s ease;

  &:hover {
    color: $primary-color !important;
  }
}

// Overflow utilities
.overflow-auto {
  overflow: auto !important;
}

.overflow-hidden {
  overflow: hidden !important;
}

.overflow-visible {
  overflow: visible !important;
}

.overflow-scroll {
  overflow: scroll !important;
}
