/* ========================================
   FLEXBOX UTILITIES
   ======================================== */
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }

/* ========================================
   SPACING UTILITIES
   ======================================== */
:root {
    --spacer: 5px;
}

/* Margin */
.m-0  { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.ml-0 { margin-left: 0 !important; }
.mr-0 { margin-right: 0 !important; }

.m-1  { margin: var(--spacer) !important; }
.mt-1 { margin-top: var(--spacer) !important; }
.mb-1 { margin-bottom: var(--spacer) !important; }
.ml-1 { margin-left: var(--spacer) !important; }
.mr-1 { margin-right: var(--spacer) !important; }

.m-2  { margin: calc(var(--spacer) * 2) !important; }
.mt-2 { margin-top: calc(var(--spacer) * 2) !important; }
.mb-2 { margin-bottom: calc(var(--spacer) * 2) !important; }
.ml-2 { margin-left: calc(var(--spacer) * 2) !important; }
.mr-2 { margin-right: calc(var(--spacer) * 2) !important; }

/* Padding */
.p-0  { padding: 0 !important; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.pl-0 { padding-left: 0 !important; }
.pr-0 { padding-right: 0 !important; }

.p-1  { padding: var(--spacer) !important; }
.pt-1 { padding-top: var(--spacer) !important; }
.pb-1 { padding-bottom: var(--spacer) !important; }
.pl-1 { padding-left: var(--spacer) !important; }
.pr-1 { padding-right: var(--spacer) !important; }

.p-2  { padding: calc(var(--spacer) * 2) !important; }
.pt-2 { padding-top: calc(var(--spacer) * 2) !important; }
.pb-2 { padding-bottom: calc(var(--spacer) * 2) !important; }
.pl-2 { padding-left: calc(var(--spacer) * 2) !important; }
.pr-2 { padding-right: calc(var(--spacer) * 2) !important; }

/* ========================================
   TEXT UTILITIES
   ======================================== */
.text-left   { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right  { text-align: right !important; }
.text-muted  { color: #777 !important; }
.text-primary { color: #337ab7 !important; }
.text-success { color: #3c763d !important; }
.text-danger  { color: #a94442 !important; }
.text-warning { color: #8a6d3b !important; }

/* ========================================
   BORDER UTILITIES
   ======================================== */
.border { border: 1px solid #dee2e6 !important; }
.border-0 { border: 0 !important; }
.rounded { border-radius: 4px !important; }
.rounded-circle { border-radius: 50% !important; }
.rounded-0 { border-radius: 0 !important; }

/* ========================================
   DISPLAY UTILITIES
   ======================================== */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }

/* Responsive visibility helpers */
@media (min-width: 768px) {
    .d-md-block { display: block !important; }
    .d-md-none { display: none !important; }
}

/* ========================================
   POSITION UTILITIES
   ======================================== */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.top-0 { top: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.left-0 { left: 0 !important; }
.right-0 { right: 0 !important; }

/* ========================================
   MISC UTILITIES
   ======================================== */
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.overflow-hidden { overflow: hidden !important; }
.cursor-pointer { cursor: pointer !important; }
