/* ========================================
   MyStyle Framework - Main Stylesheet
   ======================================== */

/* Import your chosen variables file in your HTML before this stylesheet:
   <link rel="stylesheet" href="variables.css">
   OR
   <link rel="stylesheet" href="variables-test.css">
*/

/* ========================================
   Calculated Values
   ======================================== */

:root {
  /* Calculated Spacing */
  --spacing-xs: calc(var(--spacing-base) * 0.25);
  --spacing-sm: calc(var(--spacing-base) * 0.5);
  --spacing-md: var(--spacing-base);
  --spacing-lg: calc(var(--spacing-base) * 1.5);
  --spacing-xl: calc(var(--spacing-base) * 2);
  --spacing-xxl: calc(var(--spacing-base) * 3);
  
  /* Calculated Heading Sizes */
  --h5-size: calc(var(--h6-size) * var(--heading-scale));
  --h4-size: calc(var(--h5-size) * var(--heading-scale));
  --h3-size: calc(var(--h4-size) * var(--heading-scale));
  --h2-size: calc(var(--h3-size) * var(--heading-scale));
  --h1-size: calc(var(--h2-size) * var(--heading-scale));
}

/* ========================================
   Dynamic Color Variants (Modern Browsers)
   Uses color-mix() for browsers that support it
   ======================================== */

@supports (color: color-mix(in srgb, red, blue)) {
  :root {
    /* Auto-calculated Color Variants */
    --primary-dark: color-mix(in srgb, var(--primary-color) 80%, black);
    --primary-light: color-mix(in srgb, var(--primary-color) 80%, white);
    
    --secondary-dark: color-mix(in srgb, var(--secondary-color) 80%, black);
    --secondary-light: color-mix(in srgb, var(--secondary-color) 80%, white);
    
    --success-dark: color-mix(in srgb, var(--success-color) 85%, black);
    --success-light: color-mix(in srgb, var(--success-color) 80%, white);
    
    --danger-dark: color-mix(in srgb, var(--danger-color) 80%, black);
    --danger-light: color-mix(in srgb, var(--danger-color) 80%, white);
    
    --warning-dark: color-mix(in srgb, var(--warning-color) 85%, black);
    --warning-light: color-mix(in srgb, var(--warning-color) 80%, white);
    
    --info-dark: color-mix(in srgb, var(--info-color) 85%, black);
    --info-light: color-mix(in srgb, var(--info-color) 80%, white);
  }
}

/* ========================================
   Reset & Base Styles
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--text-font-weight);
  line-height: var(--line-height-base);
  color: var(--text-primary);
  background-color: var(--body-bg);
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--text-font-weight-heading);
  line-height: var(--line-height-sm);
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }
h4 { font-size: var(--h4-size); }
h5 { font-size: var(--h5-size); }
h6 { font-size: var(--h6-size); }

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--primary-color);
  text-decoration: var(--link-decoration);
  transition: color var(--transition-speed) var(--transition-timing);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: var(--link-decoration-hover);
}

.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-info { color: var(--info-color) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-light { color: var(--text-light) !important; }
.text-dark { color: var(--text-primary) !important; }

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

.text-sm { font-size: var(--font-size-sm) !important; }
.text-lg { font-size: var(--font-size-lg) !important; }
.text-xl { font-size: var(--font-size-xl) !important; }

.font-light { font-weight: var(--font-weight-light) !important; }
.font-normal { font-weight: var(--font-weight-normal) !important; }
.font-medium { font-weight: var(--font-weight-medium) !important; }
.font-bold { font-weight: var(--font-weight-bold) !important; }

/* ========================================
   Links
   ======================================== */

.link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) var(--transition-timing);
}

.link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.link-primary {
  color: var(--primary-color);
  text-decoration: var(--link-decoration);
}

.link-primary:hover {
  color: var(--primary-dark);
  text-decoration: var(--link-decoration-hover);
}

.link-secondary {
  color: var(--secondary-color);
  text-decoration: var(--link-decoration);
}

.link-secondary:hover {
  color: var(--secondary-dark);
  text-decoration: var(--link-decoration-hover);
}

.link-success {
  color: var(--success-color);
  text-decoration: var(--link-decoration);
}

.link-success:hover {
  color: var(--success-dark);
  text-decoration: var(--link-decoration-hover);
}

.link-danger {
  color: var(--danger-color);
  text-decoration: var(--link-decoration);
}

.link-danger:hover {
  color: var(--danger-dark);
  text-decoration: var(--link-decoration-hover);
}

.link-warning {
  color: var(--warning-color);
  text-decoration: var(--link-decoration);
}

.link-warning:hover {
  color: var(--warning-dark);
  text-decoration: var(--link-decoration-hover);
}

.link-info {
  color: var(--info-color);
  text-decoration: var(--link-decoration);
}

.link-info:hover {
  color: var(--info-dark);
  text-decoration: var(--link-decoration-hover);
}

.link-dark {
  color: var(--text-primary);
  text-decoration: var(--link-decoration);
}

.link-dark:hover {
  color: var(--dark-gray);
  text-decoration: var(--link-decoration-hover);
}

.link-light {
  color: var(--text-light);
  text-decoration: var(--link-decoration);
}

.link-light:hover {
  color: white;
  text-decoration: var(--link-decoration-hover);
}

.link-muted {
  color: var(--text-muted);
  text-decoration: var(--link-decoration);
}

.link-muted:hover {
  color: var(--text-secondary);
  text-decoration: var(--link-decoration-hover);
}

/* Link Modifiers */
.link-underline,
a.link-underline {
  text-decoration: underline !important;
}

.link-underline:hover,
a.link-underline:hover {
  text-decoration: underline !important;
}

.link-no-underline,
a.link-no-underline {
  text-decoration: none !important;
}

.link-no-underline:hover,
a.link-no-underline:hover {
  text-decoration: none !important;
}

.link-underline-hover {
  text-decoration: none !important;
}

.link-underline-hover:hover {
  text-decoration: underline !important;
}

/* External Link Indicator */
.link-external::after {
  content: ' ↗';
  font-size: 0.85em;
  opacity: 0.7;
}

/* ========================================
   Container & Grid
   ======================================== */

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-sm { max-width: var(--container-sm); }
.container-md { max-width: var(--container-md); }
.container-lg { max-width: var(--container-lg); }

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(var(--spacing-md) * -0.5);
}

.col {
  flex: 1;
  padding: 0 calc(var(--spacing-md) * 0.5);
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; padding: 0 calc(var(--spacing-md) * 0.5); }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; padding: 0 calc(var(--spacing-md) * 0.5); }
.col-3 { flex: 0 0 25%; max-width: 25%; padding: 0 calc(var(--spacing-md) * 0.5); }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; padding: 0 calc(var(--spacing-md) * 0.5); }
.col-6 { flex: 0 0 50%; max-width: 50%; padding: 0 calc(var(--spacing-md) * 0.5); }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; padding: 0 calc(var(--spacing-md) * 0.5); }
.col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 calc(var(--spacing-md) * 0.5); }

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-base);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: var(--border-width) solid transparent;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed) var(--transition-timing);
  user-select: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: white;
}

.btn-success {
  background-color: var(--success-color);
  color: white;
  border-color: var(--success-color);
}

.btn-success:hover {
  background-color: var(--success-dark);
  border-color: var(--success-dark);
  color: white;
}

.btn-danger {
  background-color: var(--danger-color);
  color: white;
  border-color: var(--danger-color);
}

.btn-danger:hover {
  background-color: var(--danger-dark);
  border-color: var(--danger-dark);
  color: white;
}

.btn-warning {
  background-color: var(--warning-color);
  color: white;
  border-color: var(--warning-color);
}

.btn-warning:hover {
  background-color: var(--warning-dark);
  border-color: var(--warning-dark);
  color: white;
}

.btn-info {
  background-color: var(--info-color);
  color: white;
  border-color: var(--info-color);
}

.btn-info:hover {
  background-color: var(--info-dark);
  border-color: var(--info-dark);
  color: white;
}

.btn-dark {
  background-color: var(--dark-gray);
  color: white;
  border-color: var(--dark-gray);
}

.btn-dark:hover {
  background-color: var(--darker-gray);
  border-color: var(--darker-gray);
  color: white;
}

.btn-muted {
  background-color: var(--gray);
  color: white;
  border-color: var(--gray);
}

.btn-muted:hover {
  background-color: var(--text-secondary);
  border-color: var(--text-secondary);
  color: white;
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-outline-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-outline-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-outline-success {
  background-color: transparent;
  color: var(--success-color);
  border-color: var(--success-color);
}

.btn-outline-success:hover {
  background-color: var(--success-color);
  color: var(--white);
}

.btn-outline-danger {
  background-color: transparent;
  color: var(--danger-color);
  border-color: var(--danger-color);
}

.btn-outline-danger:hover {
  background-color: var(--danger-color);
  color: var(--white);
}

.btn-outline-warning {
  background-color: transparent;
  color: var(--warning-color);
  border-color: var(--warning-color);
}

.btn-outline-warning:hover {
  background-color: var(--warning-color);
  color: var(--white);
}

.btn-outline-info {
  background-color: transparent;
  color: var(--info-color);
  border-color: var(--info-color);
}

.btn-outline-info:hover {
  background-color: var(--info-color);
  color: var(--white);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--dark-gray);
  border-color: var(--dark-gray);
}

.btn-outline-dark:hover {
  background-color: var(--dark-gray);
  color: var(--white);
}

.btn-outline-muted {
  background-color: transparent;
  color: var(--gray);
  border-color: var(--gray);
}

.btn-outline-muted:hover {
  background-color: var(--gray);
  color: var(--white);
}

.btn-sm {
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: var(--font-size-sm);
}

.btn-lg {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-lg);
}

.btn-block {
  display: block;
  width: 100%;
}

/* ========================================
   Forms
   ======================================== */

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: var(--text-font-weight-label);
  color: var(--text-primary);
}

.form-control {
  display: block;
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--font-size-base);
  font-weight: var(--text-font-weight);
  line-height: var(--line-height-base);
  color: var(--text-primary);
  background-color: white;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
  transition: border-color var(--transition-speed) var(--transition-timing);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-control-sm {
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: var(--font-size-sm);
}

.form-control-lg {
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: var(--font-size-lg);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

select.form-control {
  cursor: pointer;
}

.form-check {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.form-check-input {
  margin-right: var(--spacing-sm);
  cursor: pointer;
}

.form-check-label {
  font-weight: var(--text-font-weight-form-check);
  cursor: pointer;
  user-select: none;
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
  background-color: var(--navbar-bg);
  padding: var(--spacing-md) 0;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: var(--z-navbar);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: white;
  text-decoration: none;
}

.navbar-brand:hover {
  color: var(--primary-light);
  text-decoration: none;
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--spacing-md);
}

.navbar-nav .nav-link {
  color: var(--text-light);
  padding: var(--spacing-sm) var(--spacing-md);
  text-decoration: none;
  font-weight: var(--text-font-weight-nav-link);
  transition: color var(--transition-speed) var(--transition-timing);
}

.navbar-nav .nav-link:hover {
  color: var(--primary-light);
  text-decoration: none;
}

.navbar-nav .nav-link.active {
  color: var(--primary-color);
  font-weight: var(--text-font-weight-nav-link-active);
}

.navbar-toggler {
  display: none;
  background: transparent;
  border: 2px solid var(--text-light);
  border-radius: 8px;
  padding: 14px 8px;
  cursor: pointer;
  transition: all var(--transition-speed) var(--transition-timing);
}

.navbar-toggler:hover {
  border-color: var(--primary-light);
}

.navbar-toggler-icon {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-light);
  position: relative;
  transition: all var(--transition-speed) var(--transition-timing);
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-light);
  position: absolute;
  left: 0;
  transition: all var(--transition-speed) var(--transition-timing);
}

.navbar-toggler-icon::before {
  top: -8px;
}

.navbar-toggler-icon::after {
  top: 8px;
}

.navbar-toggler.active .navbar-toggler-icon {
  background-color: transparent;
}

.navbar-toggler.active .navbar-toggler-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.navbar-toggler.active .navbar-toggler-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ========================================
   Cards
   ======================================== */

.card {
  background-color: white;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  overflow: visible;
  margin-bottom: var(--spacing-lg);
  transition: box-shadow var(--transition-speed) var(--transition-timing);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: var(--spacing-md) var(--spacing-lg);
  background-color: var(--light-gray);
  border-bottom: var(--border-width) solid var(--border-color);
  font-weight: var(--text-font-weight-label);
}

.card-body {
  padding: var(--spacing-lg);
  flex: 1;
}

.card-footer {
  padding: var(--spacing-md) var(--spacing-lg);
  background-color: var(--light-gray);
  border-top: var(--border-width) solid var(--border-color);
}

.card-title {
  margin-bottom: var(--spacing-md);
  font-size: var(--h4-size);
  font-weight: var(--text-font-weight-heading);
}

.card-text {
  margin-bottom: var(--spacing-md);
}

.card-img-top {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   Tables
   ======================================== */

.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--spacing-lg);
  background-color: white;
}

.table th,
.table td {
  padding: var(--spacing-md);
  text-align: left;
  border-bottom: var(--border-width) solid var(--border-color);
}

.table th {
  font-weight: var(--text-font-weight-heading);
  color: var(--text-primary);
  background-color: var(--light-gray);
}

.table-striped tbody tr:nth-child(odd) {
  background-color: var(--body-bg);
}

.table-bordered {
  border: var(--border-width) solid var(--border-color);
}

.table-bordered th,
.table-bordered td {
  border: var(--border-width) solid var(--border-color);
}

.table-hover tbody tr:hover {
  background-color: var(--light-gray);
  cursor: pointer;
}

.table-sm th,
.table-sm td {
  padding: var(--spacing-sm);
}

/* Sortable Tables */
.table-sortable th {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: calc(var(--spacing-md) + 20px);
}

.table-sortable th::after {
  content: '⇅';
  position: absolute;
  right: var(--spacing-md);
  opacity: 0.3;
  font-size: 0.9em;
}

.table-sortable th:hover::after {
  opacity: 0.6;
}

.table-sortable th.sort-asc::after {
  content: '▲';
  opacity: 1;
}

.table-sortable th.sort-desc::after {
  content: '▼';
  opacity: 1;
}

.table-sortable th:hover {
  background-color: var(--border-color);
}

/* ========================================
   Alerts
   ======================================== */

.alert {
  padding: var(--spacing-md) var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  border: var(--border-width) solid transparent;
  border-radius: var(--border-radius);
}

.alert-primary {
  background-color: rgba(52, 152, 219, 0.1);
  border-color: var(--primary-light);
  color: var(--primary-dark);
}

.alert-success {
  background-color: rgba(39, 174, 96, 0.1);
  border-color: var(--success-light);
  color: var(--success-dark);
}

.alert-danger {
  background-color: rgba(231, 76, 60, 0.1);
  border-color: var(--danger-light);
  color: var(--danger-dark);
}

.alert-warning {
  background-color: rgba(243, 156, 18, 0.1);
  border-color: var(--warning-light);
  color: var(--warning-dark);
}

.alert-info {
  background-color: rgba(22, 160, 133, 0.1);
  border-color: var(--info-light);
  color: var(--info-dark);
}

/* ========================================
   Badges
   ======================================== */

.badge {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  border-radius: var(--border-radius-sm);
}

.badge-primary {
  background-color: var(--primary-color);
  color: white;
}

.badge-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.badge-success {
  background-color: var(--success-color);
  color: white;
}

.badge-danger {
  background-color: var(--danger-color);
  color: white;
}

.badge-warning {
  background-color: var(--warning-color);
  color: white;
}

.badge-info {
  background-color: var(--info-color);
  color: white;
}

/* ========================================
   Images
   ======================================== */

.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}

.img-rounded {
  border-radius: var(--border-radius);
}

.img-rounded-lg {
  border-radius: var(--border-radius-lg);
}

.img-circle {
  border-radius: 50%;
}

.img-thumbnail {
  padding: var(--spacing-xs);
  background-color: white;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
}

.img-thumbnail-light {
  padding: var(--spacing-xs);
  background-color: white;
  border: var(--border-width-thick) solid var(--light-gray);
  border-radius: var(--border-radius);
}

.img-thumbnail-dark {
  padding: var(--spacing-xs);
  background-color: var(--darker-gray);
  border: var(--border-width-thick) solid var(--dark-gray);
  border-radius: var(--border-radius);
}

/* ========================================
   Header & Footer
   ======================================== */

.header {
  background-color: var(--primary-color);
  color: white;
  padding: var(--spacing-xxl) 0;
  text-align: center;
}

.header h1 {
  color: white;
  margin-bottom: var(--spacing-md);
}

.header p {
  font-size: var(--font-size-lg);
  margin-bottom: 0;
}

.footer {
  background-color: var(--footer-bg);
  color: var(--text-light);
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-xxl);
}

.footer a {
  color: var(--text-light);
}

.footer a:hover {
  color: white;
}

/* ========================================
   Utilities - Spacing
   ======================================== */

.m-0 { margin: 0 !important; }
.m-1 { margin: var(--spacing-xs) !important; }
.m-2 { margin: var(--spacing-sm) !important; }
.m-3 { margin: var(--spacing-md) !important; }
.m-4 { margin: var(--spacing-lg) !important; }
.m-5 { margin: var(--spacing-xl) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--spacing-xs) !important; }
.mt-2 { margin-top: var(--spacing-sm) !important; }
.mt-3 { margin-top: var(--spacing-md) !important; }
.mt-4 { margin-top: var(--spacing-lg) !important; }
.mt-5 { margin-top: var(--spacing-xl) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--spacing-xs) !important; }
.mb-2 { margin-bottom: var(--spacing-sm) !important; }
.mb-3 { margin-bottom: var(--spacing-md) !important; }
.mb-4 { margin-bottom: var(--spacing-lg) !important; }
.mb-5 { margin-bottom: var(--spacing-xl) !important; }

.ml-0 { margin-left: 0 !important; }
.ml-1 { margin-left: var(--spacing-xs) !important; }
.ml-2 { margin-left: var(--spacing-sm) !important; }
.ml-3 { margin-left: var(--spacing-md) !important; }
.ml-4 { margin-left: var(--spacing-lg) !important; }
.ml-5 { margin-left: var(--spacing-xl) !important; }

.mr-0 { margin-right: 0 !important; }
.mr-1 { margin-right: var(--spacing-xs) !important; }
.mr-2 { margin-right: var(--spacing-sm) !important; }
.mr-3 { margin-right: var(--spacing-md) !important; }
.mr-4 { margin-right: var(--spacing-lg) !important; }
.mr-5 { margin-right: var(--spacing-xl) !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: var(--spacing-xs) !important; }
.p-2 { padding: var(--spacing-sm) !important; }
.p-3 { padding: var(--spacing-md) !important; }
.p-4 { padding: var(--spacing-lg) !important; }
.p-5 { padding: var(--spacing-xl) !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: var(--spacing-xs) !important; }
.pt-2 { padding-top: var(--spacing-sm) !important; }
.pt-3 { padding-top: var(--spacing-md) !important; }
.pt-4 { padding-top: var(--spacing-lg) !important; }
.pt-5 { padding-top: var(--spacing-xl) !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: var(--spacing-xs) !important; }
.pb-2 { padding-bottom: var(--spacing-sm) !important; }
.pb-3 { padding-bottom: var(--spacing-md) !important; }
.pb-4 { padding-bottom: var(--spacing-lg) !important; }
.pb-5 { padding-bottom: var(--spacing-xl) !important; }

/* ========================================
   Utilities - Display & Flexbox
   ======================================== */

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

.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }

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

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

.gap-1 { gap: var(--spacing-xs) !important; }
.gap-2 { gap: var(--spacing-sm) !important; }
.gap-3 { gap: var(--spacing-md) !important; }
.gap-4 { gap: var(--spacing-lg) !important; }
.gap-5 { gap: var(--spacing-xl) !important; }

/* ========================================
   Utilities - Background & Borders
   ======================================== */

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-success { background-color: var(--success-color) !important; }
.bg-danger { background-color: var(--danger-color) !important; }
.bg-warning { background-color: var(--warning-color) !important; }
.bg-info { background-color: var(--info-color) !important; }
.bg-light { background-color: var(--light-gray) !important; }
.bg-dark { background-color: var(--dark-gray) !important; }
.bg-white { background-color: white !important; }

.border { border: var(--border-width) solid var(--border-color) !important; }
.border-0 { border: 0 !important; }
.border-top { border-top: var(--border-width) solid var(--border-color) !important; }
.border-bottom { border-bottom: var(--border-width) solid var(--border-color) !important; }
.border-left { border-left: var(--border-width) solid var(--border-color) !important; }
.border-right { border-right: var(--border-width) solid var(--border-color) !important; }

.border-primary { border-color: var(--primary-color) !important; }
.border-secondary { border-color: var(--secondary-color) !important; }
.border-success { border-color: var(--success-color) !important; }
.border-danger { border-color: var(--danger-color) !important; }
.border-warning { border-color: var(--warning-color) !important; }
.border-info { border-color: var(--info-color) !important; }
.border-dark { border-color: var(--dark-gray) !important; }
.border-muted { border-color: var(--gray) !important; }

/* Button outline modifiers - can be combined with any button color */
.btn-primary-outline { border-color: var(--primary-color) !important; }
.btn-secondary-outline { border-color: var(--secondary-color) !important; }
.btn-success-outline { border-color: var(--success-color) !important; }
.btn-danger-outline { border-color: var(--danger-color) !important; }
.btn-warning-outline { border-color: var(--warning-color) !important; }
.btn-info-outline { border-color: var(--info-color) !important; }
.btn-dark-outline { border-color: var(--dark-gray) !important; }
.btn-muted-outline { border-color: var(--gray) !important; }

.rounded { border-radius: var(--border-radius) !important; }
.rounded-lg { border-radius: var(--border-radius-lg) !important; }
.rounded-xl { border-radius: var(--border-radius-xl) !important; }
.rounded-circle { border-radius: 50% !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-xl { box-shadow: var(--shadow-xl) !important; }
.shadow-none { box-shadow: none !important; }

/* ========================================
   Utilities - Width & Height
   ======================================== */

.w-25 { width: var(--w-25) !important; }
.w-50 { width: var(--w-50) !important; }
.w-75 { width: var(--w-75) !important; }
.w-100 { width: var(--w-100) !important; }
.w-auto { width: auto !important; }

.h-25 { height: var(--h-25) !important; }
.h-50 { height: var(--h-50) !important; }
.h-75 { height: var(--h-75) !important; }
.h-100 { height: var(--h-100) !important; }
.h-auto { height: auto !important; }

.mw-100 { max-width: 100% !important; }
.mh-100 { max-height: 100% !important; }

.vw-100 { width: 100vw !important; }
.vh-100 { height: 100vh !important; }

/* ========================================
   Utilities - 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; }
.bottom-0 { bottom: 0 !important; }
.start-0 { left: 0 !important; }
.end-0 { right: 0 !important; }

.sticky-top { position: sticky; top: 0; z-index: var(--z-sticky); }

/* ========================================
   Utilities - Overflow
   ======================================== */

.overflow-auto { overflow: auto !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-visible { overflow: visible !important; }
.overflow-scroll { overflow: scroll !important; }

/* ========================================
   Utilities - Visibility & Opacity
   ======================================== */

.visible { visibility: visible !important; }
.invisible { visibility: hidden !important; }

.opacity-0 { opacity: var(--opacity-0) !important; }
.opacity-25 { opacity: var(--opacity-25) !important; }
.opacity-50 { opacity: var(--opacity-50) !important; }
.opacity-75 { opacity: var(--opacity-75) !important; }
.opacity-100 { opacity: var(--opacity-100) !important; }

/* ========================================
   Typography - Advanced
   ======================================== */

.display-1 { font-size: calc(var(--h1-size) * 1.5); font-weight: var(--font-weight-light); line-height: 1.2; }
.display-2 { font-size: calc(var(--h1-size) * 1.4); font-weight: var(--font-weight-light); line-height: 1.2; }
.display-3 { font-size: calc(var(--h1-size) * 1.3); font-weight: var(--font-weight-light); line-height: 1.2; }
.display-4 { font-size: calc(var(--h1-size) * 1.2); font-weight: var(--font-weight-light); line-height: 1.2; }
.display-5 { font-size: calc(var(--h1-size) * 1.1); font-weight: var(--font-weight-light); line-height: 1.2; }
.display-6 { font-size: var(--h1-size); font-weight: var(--font-weight-light); line-height: 1.2; }

.lead { font-size: var(--font-size-lg); font-weight: var(--font-weight-normal); }

.text-uppercase { text-transform: uppercase !important; }
.text-lowercase { text-transform: lowercase !important; }
.text-capitalize { text-transform: capitalize !important; }

.text-wrap { white-space: normal !important; }
.text-nowrap { white-space: nowrap !important; }

.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-break {
  word-wrap: break-word !important;
  word-break: break-word !important;
}

.lh-1 { line-height: 1 !important; }
.lh-sm { line-height: var(--line-height-sm) !important; }
.lh-base { line-height: var(--line-height-base) !important; }
.lh-lg { line-height: var(--line-height-lg) !important; }

.list-unstyled {
  padding-left: 0;
  list-style: none;
}

.list-inline {
  padding-left: 0;
  list-style: none;
}

.list-inline-item {
  display: inline-block;
  margin-right: var(--spacing-sm);
}

blockquote {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-md);
  border-left: 3px solid var(--border-color);
  font-size: var(--font-size-lg);
}

.blockquote-footer {
  margin-top: calc(var(--spacing-md) * -0.5);
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.blockquote-footer::before {
  content: "\\2014\\00A0";
}

/* ========================================
   Components - Container Fluid
   ======================================== */

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

/* ========================================
   Components - Responsive Grid
   ======================================== */

.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; padding: 0 calc(var(--spacing-md) * 0.5); }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; padding: 0 calc(var(--spacing-md) * 0.5); }
.col-9 { flex: 0 0 75%; max-width: 75%; padding: 0 calc(var(--spacing-md) * 0.5); }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; padding: 0 calc(var(--spacing-md) * 0.5); }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; padding: 0 calc(var(--spacing-md) * 0.5); }

/* Offset classes */
.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%; }

/* Order classes */
.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; }

/* ========================================
   Components - Modal
   ======================================== */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-modal);
  display: none;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
}

.modal.show {
  display: block;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 1.75rem auto;
  max-width: 500px;
  pointer-events: none;
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 3.5rem);
}

.modal-dialog-scrollable {
  height: calc(100% - 3.5rem);
}

.modal-dialog-scrollable .modal-content {
  max-height: 100%;
  overflow: hidden;
}

.modal-dialog-scrollable .modal-body {
  overflow-y: auto;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: var(--modal-content-bg);
  background-clip: padding-box;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--modal-content-border-radius);
  box-shadow: var(--shadow-xl);
  outline: 0;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-modal-backdrop);
  width: 100vw;
  height: 100vh;
  background-color: var(--modal-backdrop-bg);
}

.modal-backdrop.show {
  opacity: 1;
}

.modal-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md);
  border-bottom: var(--border-width) solid var(--border-color);
  border-top-left-radius: var(--modal-content-border-radius);
  border-top-right-radius: var(--modal-content-border-radius);
}

.modal-title {
  margin-bottom: 0;
  line-height: var(--line-height-base);
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: var(--spacing-md);
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  padding: calc(var(--spacing-md) - var(--spacing-xs));
  border-top: var(--border-width) solid var(--border-color);
  border-bottom-right-radius: var(--modal-content-border-radius);
  border-bottom-left-radius: var(--modal-content-border-radius);
  gap: var(--spacing-xs);
}

.modal-sm { max-width: 300px; }
.modal-lg { max-width: 800px; }
.modal-xl { max-width: 1140px; }
.modal-fullscreen { max-width: 100%; width: 100%; height: 100%; margin: 0; }

.btn-close {
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  padding: 0.25em;
  color: var(--text-primary);
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
  border: 0;
  border-radius: var(--border-radius);
  opacity: 0.5;
  cursor: pointer;
}

.btn-close:hover {
  opacity: 0.75;
}

/* ========================================
   Components - Dropdown
   ======================================== */

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: var(--z-dropdown);
  display: none;
  min-width: 10rem;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  font-size: var(--font-size-base);
  color: var(--text-primary);
  text-align: left;
  list-style: none;
  background-color: var(--dropdown-bg);
  background-clip: padding-box;
  border: var(--border-width) solid var(--dropdown-border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

/* Show dropdown on hover when JS is not enabled */
.dropdown:hover > .dropdown-menu {
  display: block;
}

/* With JavaScript enabled, only show dropdown via .show class */
.js-enabled .dropdown-menu {
  display: none !important;
}

.js-enabled .dropdown-menu.show {
  display: block !important;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  clear: both;
  font-weight: var(--font-weight-normal);
  color: var(--text-primary);
  text-align: inherit;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  cursor: pointer;
  transition: background-color var(--transition-speed) var(--transition-timing);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--dropdown-link-hover-bg);
}

.dropdown-item.active {
  color: var(--dropdown-link-active-color);
  background-color: var(--dropdown-link-active-bg);
}

.dropdown-divider {
  height: 0;
  margin: 0.5rem 0;
  overflow: hidden;
  border-top: var(--border-width) solid var(--border-color);
}

.dropdown-header {
  display: block;
  padding: 0.5rem 1rem;
  margin-bottom: 0;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  white-space: nowrap;
}

.dropup .dropdown-menu {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 0.125rem;
}

.dropend .dropdown-menu {
  top: 0;
  right: auto;
  left: 100%;
  margin-top: 0;
  margin-left: 0.125rem;
}

.dropstart .dropdown-menu {
  top: 0;
  right: 100%;
  left: auto;
  margin-top: 0;
  margin-right: 0.125rem;
}

/* ========================================
   Components - Accordion / Collapse
   ======================================== */

.accordion {
  margin-bottom: var(--spacing-md);
}

.accordion-item {
  background-color: white;
  border: var(--border-width) solid var(--accordion-border-color);
}

.accordion-item:not(:first-child) {
  border-top: 0;
}

.accordion-header {
  margin-bottom: 0;
}

.accordion-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: var(--spacing-md);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  text-align: left;
  background-color: var(--accordion-button-bg);
  border: 0;
  border-radius: 0;
  overflow-anchor: none;
  transition: background-color var(--transition-speed) var(--transition-timing);
  cursor: pointer;
}

.accordion-button:not(.collapsed) {
  color: white;
  background-color: var(--accordion-button-active-bg);
}

.accordion-button::after {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: auto;
  content: "";
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 1.25rem;
  transition: transform var(--transition-speed) var(--transition-timing);
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(-180deg);
}

.accordion-collapse {
  overflow: hidden;
  transition: height var(--transition-speed) var(--transition-timing);
}

/* Show accordion content by default (no JS) */
.accordion-collapse.collapse {
  display: block;
}

/* Only hide when JavaScript is enabled */
.js-enabled .accordion-collapse.collapse:not(.show) {
  display: none;
}

.accordion-collapse.show {
  display: block;
}

.accordion-body {
  padding: var(--spacing-md);
}

.collapse {
  display: block;
}

/* Only hide collapsed elements when JavaScript is enabled */
.js-enabled .collapse {
  display: none;
}

.collapse.show {
  display: block;
}

.collapsing {
  height: 0;
  overflow: hidden;
  transition: height var(--transition-speed) var(--transition-timing);
}

/* ========================================
   Components - Tabs & Pills
   ======================================== */

.nav {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) var(--transition-timing);
  cursor: pointer;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary-dark);
}

.nav-link.disabled {
  color: var(--text-muted);
  pointer-events: none;
  cursor: default;
}

.nav-tabs {
  border-bottom: var(--border-width) solid var(--border-color);
}

.nav-tabs .nav-link {
  margin-bottom: calc(var(--border-width) * -1);
  border: var(--border-width) solid transparent;
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
  border-color: var(--light-gray);
  isolation: isolate;
}

.nav-tabs .nav-link.active {
  color: var(--text-primary);
  background-color: white;
  border-color: var(--border-color) var(--border-color) white;
  z-index: 1;
}

.tab-content {
  background-color: white;
  border: var(--border-width) solid var(--border-color);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
  padding: var(--spacing-md);
  margin-top: calc(var(--border-width) * -1);
}

.pill-content {
  background-color: white;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  margin-top: var(--spacing-sm);
}

.tab-content > .tab-pane {
  margin-bottom: 0;
}

.nav-pills .nav-link {
  border-radius: var(--border-radius);
}

.nav-pills .nav-link.active {
  color: white;
  background-color: var(--primary-color);
}

.nav-pills + .pill-content {
  border-top: var(--border-width) solid var(--border-color);
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
}

.nav-fill .nav-item {
  flex: 1 1 auto;
  text-align: center;
}

.nav-justified .nav-item {
  flex-basis: 0;
  flex-grow: 1;
  text-align: center;
}

/* Show all tab content by default (no JS) */
.tab-content > .tab-pane {
  display: block;
  margin-bottom: var(--spacing-lg);
}

/* Show all pill content by default (no JS) */
.pill-content > .tab-pane {
  display: block;
  margin-bottom: var(--spacing-lg);
}

/* Only hide inactive tabs when JavaScript is enabled */
.js-enabled .tab-content > .tab-pane:not(.active) {
  display: none;
  margin-bottom: 0;
}

/* Only hide inactive pills when JavaScript is enabled */
.js-enabled .pill-content > .tab-pane:not(.active) {
  display: none;
  margin-bottom: 0;
}

.tab-content > .active {
  display: block;
}

.pill-content > .active {
  display: block;
}

/* ========================================
   Components - Breadcrumb
   ======================================== */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  padding: var(--spacing-sm) var(--spacing-md);
  margin-bottom: var(--spacing-md);
  list-style: none;
  background-color: var(--breadcrumb-bg);
  border-radius: var(--border-radius);
}

.breadcrumb-item + .breadcrumb-item {
  padding-left: 0.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  float: left;
  padding-right: 0.5rem;
  color: var(--text-muted);
  content: var(--breadcrumb-divider, "/");
}

.breadcrumb-item.active {
  color: var(--text-muted);
}

/* ========================================
   Components - Pagination
   ======================================== */

.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
  gap: var(--spacing-xs);
}

.page-link {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--pagination-color);
  text-decoration: none;
  background-color: var(--pagination-bg);
  border: var(--border-width) solid var(--pagination-border-color);
  transition: color var(--transition-speed) var(--transition-timing), background-color var(--transition-speed) var(--transition-timing);
  cursor: pointer;
}

.page-link:hover {
  color: var(--primary-dark);
  background-color: var(--pagination-hover-bg);
  border-color: var(--pagination-border-color);
}

.page-link:focus {
  z-index: 3;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.page-item:first-child .page-link {
  border-top-left-radius: var(--border-radius);
  border-bottom-left-radius: var(--border-radius);
}

.page-item:last-child .page-link {
  border-top-right-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
}

.page-item.active .page-link {
  z-index: 3;
  color: var(--pagination-active-color);
  background-color: var(--pagination-active-bg);
  border-color: var(--pagination-active-bg);
}

.page-item.disabled .page-link {
  color: var(--pagination-disabled-color);
  pointer-events: none;
  background-color: var(--pagination-bg);
  border-color: var(--pagination-border-color);
  cursor: not-allowed;
}

.pagination-lg .page-link {
  padding: 0.75rem 1.5rem;
  font-size: var(--font-size-lg);
}

.pagination-sm .page-link {
  padding: 0.25rem 0.5rem;
  font-size: var(--font-size-sm);
}

/* ========================================
   Components - Progress
   ======================================== */

.progress {
  display: flex;
  height: var(--progress-height);
  overflow: hidden;
  font-size: var(--font-size-sm);
  background-color: var(--progress-bg);
  border-radius: var(--progress-border-radius);
}

.progress-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: white;
  text-align: center;
  white-space: nowrap;
  background-color: var(--primary-color);
  transition: width var(--transition-speed) var(--transition-timing);
}

.progress-bar-striped {
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-size: 1rem 1rem;
}

.progress-bar-animated {
  animation: progress-bar-stripes var(--spinner-animation-speed) linear infinite;
}

@keyframes progress-bar-stripes {
  0% { background-position: 1rem 0; }
  100% { background-position: 0 0; }
}

/* ========================================
   Components - Spinners
   ======================================== */

.spinner-border {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  vertical-align: text-bottom;
  border: var(--spinner-border-width) solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border var(--spinner-animation-speed) linear infinite;
}

@keyframes spinner-border {
  to { transform: rotate(360deg); }
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.2em;
}

.spinner-grow {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  vertical-align: text-bottom;
  background-color: currentColor;
  border-radius: 50%;
  opacity: 0;
  animation: spinner-grow var(--spinner-animation-speed) linear infinite;
}

@keyframes spinner-grow {
  0% { transform: scale(0); }
  50% { opacity: 1; transform: scale(1); }
}

.spinner-grow-sm {
  width: 1rem;
  height: 1rem;
}

/* ========================================
   Components - Toast
   ======================================== */

.toast-container {
  position: fixed;
  z-index: var(--z-toast);
  pointer-events: none;
}

.toast-container.top-0 { top: 0; }
.toast-container.top-50 { top: 50%; transform: translateY(-50%); }
.toast-container.bottom-0 { bottom: 0; }
.toast-container.start-0 { left: 0; }
.toast-container.start-50 { left: 50%; transform: translateX(-50%); }
.toast-container.end-0 { right: 0; }

.toast {
  width: 350px;
  max-width: 100%;
  font-size: var(--font-size-sm);
  pointer-events: auto;
  background-color: var(--toast-bg);
  background-clip: padding-box;
  border: var(--border-width) solid var(--border-color);
  box-shadow: var(--toast-box-shadow);
  border-radius: var(--toast-border-radius);
  margin-bottom: var(--spacing-md);
  opacity: 0;
  transition: opacity var(--transition-speed) var(--transition-timing);
}

.toast.show {
  opacity: 1;
}

.toast-header {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  color: var(--text-muted);
  background-color: var(--light-gray);
  background-clip: padding-box;
  border-bottom: var(--border-width) solid var(--border-color);
  border-top-left-radius: calc(var(--toast-border-radius) - var(--border-width));
  border-top-right-radius: calc(var(--toast-border-radius) - var(--border-width));
  gap: 0.5rem;
}

.toast-body {
  padding: 0.75rem;
  word-wrap: break-word;
}

/* ========================================
   Components - Tooltip
   ======================================== */

.tooltip {
  position: absolute;
  z-index: var(--z-tooltip);
  display: none;
  max-width: var(--tooltip-max-width);
  font-size: var(--font-size-sm);
  word-wrap: break-word;
  opacity: 0;
}

.tooltip.show {
  display: block;
  opacity: 0.9;
}

.tooltip-inner {
  max-width: var(--tooltip-max-width);
  padding: 0.25rem 0.5rem;
  color: var(--tooltip-color);
  text-align: center;
  background-color: var(--tooltip-bg);
  border-radius: var(--tooltip-border-radius);
}

.tooltip-arrow {
  position: absolute;
  display: block;
  width: 0.8rem;
  height: 0.4rem;
}

.tooltip-arrow::before {
  position: absolute;
  content: "";
  border-color: transparent;
  border-style: solid;
}

.bs-tooltip-top .tooltip-arrow {
  bottom: 0;
}

.bs-tooltip-top .tooltip-arrow::before {
  top: -1px;
  border-width: 0.4rem 0.4rem 0;
  border-top-color: var(--tooltip-bg);
}

.bs-tooltip-end .tooltip-arrow {
  left: 0;
  width: 0.4rem;
  height: 0.8rem;
}

.bs-tooltip-end .tooltip-arrow::before {
  right: -1px;
  border-width: 0.4rem 0.4rem 0.4rem 0;
  border-right-color: var(--tooltip-bg);
}

.bs-tooltip-bottom .tooltip-arrow {
  top: 0;
}

.bs-tooltip-bottom .tooltip-arrow::before {
  bottom: -1px;
  border-width: 0 0.4rem 0.4rem;
  border-bottom-color: var(--tooltip-bg);
}

.bs-tooltip-start .tooltip-arrow {
  right: 0;
  width: 0.4rem;
  height: 0.8rem;
}

.bs-tooltip-start .tooltip-arrow::before {
  left: -1px;
  border-width: 0.4rem 0 0.4rem 0.4rem;
  border-left-color: var(--tooltip-bg);
}

/* ========================================
   Components - Popover
   ======================================== */

.popover {
  position: absolute;
  top: 0;
  left: 0;
  z-index: var(--z-popover);
  display: none;
  max-width: var(--popover-max-width);
  font-size: var(--font-size-sm);
  word-wrap: break-word;
  background-color: var(--popover-bg);
  background-clip: padding-box;
  border: var(--border-width) solid var(--popover-border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.popover.show {
  display: block;
}

.popover-arrow {
  position: absolute;
  display: block;
  width: 1rem;
  height: 0.5rem;
}

.popover-arrow::before,
.popover-arrow::after {
  position: absolute;
  display: block;
  content: "";
  border-color: transparent;
  border-style: solid;
}

.bs-popover-top > .popover-arrow {
  bottom: calc(-0.5rem - var(--border-width));
}

.bs-popover-top > .popover-arrow::before {
  bottom: 0;
  border-width: 0.5rem 0.5rem 0;
  border-top-color: var(--popover-border-color);
}

.bs-popover-top > .popover-arrow::after {
  bottom: var(--border-width);
  border-width: 0.5rem 0.5rem 0;
  border-top-color: var(--popover-bg);
}

.popover-header {
  padding: 0.5rem 0.75rem;
  margin-bottom: 0;
  font-size: var(--font-size-base);
  background-color: var(--popover-header-bg);
  border-bottom: var(--border-width) solid var(--border-color);
  border-top-left-radius: calc(var(--border-radius-lg) - var(--border-width));
  border-top-right-radius: calc(var(--border-radius-lg) - var(--border-width));
}

.popover-body {
  padding: 0.5rem 0.75rem;
  color: var(--text-primary);
}

/* ========================================
   Components - Offcanvas
   ======================================== */

.offcanvas {
  position: fixed;
  bottom: 0;
  z-index: var(--z-offcanvas);
  display: flex;
  flex-direction: column;
  max-width: 100%;
  visibility: hidden;
  background-color: var(--offcanvas-bg);
  background-clip: padding-box;
  outline: 0;
  transition: transform var(--transition-speed) var(--transition-timing);
}

.offcanvas-start {
  top: 0;
  left: 0;
  width: var(--offcanvas-width);
  border-right: var(--border-width) solid var(--border-color);
  transform: translateX(-100%);
}

.offcanvas-end {
  top: 0;
  right: 0;
  width: var(--offcanvas-width);
  border-left: var(--border-width) solid var(--border-color);
  transform: translateX(100%);
}

.offcanvas-top {
  top: 0;
  right: 0;
  left: 0;
  height: 30vh;
  max-height: 100%;
  border-bottom: var(--border-width) solid var(--border-color);
  transform: translateY(-100%);
}

.offcanvas-bottom {
  right: 0;
  left: 0;
  height: 30vh;
  max-height: 100%;
  border-top: var(--border-width) solid var(--border-color);
  transform: translateY(100%);
}

.offcanvas.show {
  visibility: visible;
  transform: none;
}

.offcanvas-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: calc(var(--z-offcanvas) - 1);
  width: 100vw;
  height: 100vh;
  background-color: var(--offcanvas-backdrop-bg);
}

.offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md);
}

.offcanvas-title {
  margin-bottom: 0;
  line-height: var(--line-height-base);
}

.offcanvas-body {
  flex-grow: 1;
  padding: var(--spacing-md);
  overflow-y: auto;
}

/* ========================================
   Components - Carousel
   ======================================== */

.carousel {
  position: relative;
}

.carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-item {
  position: relative;
  display: none;
  float: left;
  width: 100%;
  margin-right: -100%;
  backface-visibility: hidden;
  transition: transform var(--transition-speed) var(--transition-timing);
}

.carousel-item.active {
  display: block;
}

.carousel-item-next,
.carousel-item-prev {
  display: block;
}

.carousel-item-next:not(.carousel-item-start),
.carousel-item.active.carousel-item-end {
  transform: translateX(100%);
}

.carousel-item-prev:not(.carousel-item-end),
.carousel-item.active.carousel-item-start {
  transform: translateX(-100%);
}

.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15%;
  padding: 0;
  color: var(--carousel-control-color);
  text-align: center;
  background: none;
  border: 0;
  opacity: 0.5;
  transition: opacity var(--transition-speed) var(--transition-timing);
  cursor: pointer;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 0.9;
}

.carousel-control-prev {
  left: 0;
}

.carousel-control-next {
  right: 0;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: 100% 100%;
}

.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.carousel-indicators {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 0;
  margin-right: 15%;
  margin-bottom: 1rem;
  margin-left: 15%;
  list-style: none;
  gap: var(--spacing-xs);
}

.carousel-indicators button {
  box-sizing: content-box;
  flex: 0 1 auto;
  width: var(--carousel-indicator-width);
  height: var(--carousel-indicator-height);
  padding: 0;
  margin-right: 3px;
  margin-left: 3px;
  text-indent: -999px;
  cursor: pointer;
  background-color: var(--carousel-indicator-bg);
  background-clip: padding-box;
  border: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  opacity: 0.5;
  transition: opacity var(--transition-speed) var(--transition-timing);
}

.carousel-indicators .active {
  opacity: 1;
  background-color: var(--carousel-indicator-active-bg);
}

.carousel-caption {
  position: absolute;
  right: 15%;
  bottom: 1.25rem;
  left: 15%;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  color: white;
  text-align: center;
}

/* ========================================
   Components - List Group
   ======================================== */

.list-group {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  border-radius: var(--border-radius);
}

.list-group-item {
  position: relative;
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  background-color: var(--list-group-bg);
  border: var(--border-width) solid var(--list-group-border-color);
}

.list-group-item:first-child {
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.list-group-item:last-child {
  border-bottom-right-radius: inherit;
  border-bottom-left-radius: inherit;
}

.list-group-item:not(:first-child) {
  border-top-width: 0;
}

.list-group-item-action {
  width: 100%;
  color: var(--text-primary);
  text-align: inherit;
  cursor: pointer;
}

.list-group-item-action:hover,
.list-group-item-action:focus {
  z-index: 1;
  color: var(--text-primary);
  text-decoration: none;
  background-color: var(--list-group-hover-bg);
}

.list-group-item-action.active {
  color: var(--list-group-active-color);
  background-color: var(--list-group-active-bg);
  border-color: var(--list-group-active-bg);
}

.list-group-item-primary {
  color: #084298;
  background-color: #cfe2ff;
}

.list-group-item-success {
  color: #0f5132;
  background-color: #d1e7dd;
}

.list-group-item-danger {
  color: #842029;
  background-color: #f8d7da;
}

.list-group-item-warning {
  color: #664d03;
  background-color: #fff3cd;
}

.list-group-item-info {
  color: #055160;
  background-color: #cff4fc;
}

.list-group-flush {
  border-radius: 0;
}

.list-group-flush > .list-group-item {
  border-width: 0 0 var(--border-width);
}

.list-group-flush > .list-group-item:last-child {
  border-bottom-width: 0;
}

.list-group-numbered {
  list-style-type: none;
  counter-reset: section;
}

.list-group-numbered > .list-group-item::before {
  content: counters(section, ".") ". ";
  counter-increment: section;
  margin-right: 0.5rem;
}

/* ========================================
   Components - Input Group
   ======================================== */

.input-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
}

.input-group > .form-control {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
}

.input-group > .form-control:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.input-group > .form-control:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-base);
  color: var(--text-primary);
  text-align: center;
  white-space: nowrap;
  background-color: var(--input-group-addon-bg);
  border: var(--border-width) solid var(--input-group-addon-border-color);
  border-radius: var(--border-radius);
}

.input-group-text:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group-text:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.input-group > .btn {
  position: relative;
  z-index: 2;
}

.input-group > .btn:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.input-group > .btn:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* ========================================
   Components - Button Group
   ======================================== */

.btn-group {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
}

.btn-group > .btn {
  position: relative;
  flex: 1 1 auto;
}

.btn-group > .btn:not(:first-child) {
  margin-left: calc(var(--border-width) * -1);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.btn-group > .btn:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.btn-group > .btn:hover,
.btn-group > .btn:focus {
  z-index: 1;
}

.btn-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: var(--spacing-sm);
}

/* ========================================
   Forms - Advanced
   ======================================== */

.form-control.is-valid {
  border-color: var(--success-color);
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2327ae60' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
  border-color: var(--danger-color);
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23e74c3c'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23e74c3c' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.valid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: var(--font-size-sm);
  color: var(--success-color);
}

.invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: var(--font-size-sm);
  color: var(--danger-color);
}

.form-control.is-valid ~ .valid-feedback,
.form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

.form-text {
  margin-top: 0.25rem;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.form-floating {
  position: relative;
}

.form-floating > .form-control {
  height: calc(3.5rem + 2px);
  padding: 1rem 0.75rem;
}

.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown) {
  padding-top: 1.625rem;
  padding-bottom: 0.625rem;
}

.form-floating > label {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  padding: 1rem 0.75rem;
  pointer-events: none;
  border: var(--border-width) solid transparent;
  transform-origin: 0 0;
  transition: opacity var(--transition-speed) var(--transition-timing), transform var(--transition-speed) var(--transition-timing);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  opacity: 0.65;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-switch {
  padding-left: 2.5em;
}

.form-switch .form-check-input {
  width: 2em;
  margin-left: -2.5em;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
  background-position: left center;
  border-radius: 2em;
  transition: background-position var(--transition-speed) var(--transition-timing);
}

.form-switch .form-check-input:checked {
  background-position: right center;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-range {
  width: 100%;
  height: 1.5rem;
  padding: 0;
  background-color: transparent;
  appearance: none;
}

.form-range::-webkit-slider-thumb {
  width: 1rem;
  height: 1rem;
  margin-top: -0.25rem;
  background-color: var(--primary-color);
  border: 0;
  border-radius: 1rem;
  appearance: none;
  cursor: pointer;
}

.form-range::-webkit-slider-runnable-track {
  width: 100%;
  height: 0.5rem;
  color: transparent;
  cursor: pointer;
  background-color: var(--border-color);
  border-color: transparent;
  border-radius: 1rem;
}

.form-range::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  background-color: var(--primary-color);
  border: 0;
  border-radius: 1rem;
  appearance: none;
  cursor: pointer;
}

.form-range::-moz-range-track {
  width: 100%;
  height: 0.5rem;
  color: transparent;
  cursor: pointer;
  background-color: var(--border-color);
  border-color: transparent;
  border-radius: 1rem;
}

.form-select {
  display: block;
  width: 100%;
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-base);
  color: var(--text-primary);
  background-color: white;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
  appearance: none;
}

.form-select:focus {
  border-color: var(--primary-color);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* ========================================
   Responsive Utilities
   ======================================== */

@media (max-width: 768px) {
  .navbar .container {
    flex-wrap: wrap;
  }
  
  .navbar-brand {
    order: 1;
  }
  
  .navbar-toggler {
    display: none;
    order: 2;
  }
  
  .navbar-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: var(--spacing-md);
    order: 3;
    gap: 0;
  }
  
  /* Only apply hamburger menu behavior when JavaScript is loaded */
  .js-enabled .navbar-toggler {
    display: block;
  }
  
  .js-enabled .navbar-nav {
    display: none;
  }
  
  .js-enabled .navbar-nav.show {
    display: flex;
  }
  
  .navbar-nav li {
    width: 100%;
  }
  
  .navbar-nav .nav-link {
    display: block;
    width: 100%;
    padding: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .row {
    flex-direction: column;
  }
  
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .d-sm-none { display: none !important; }
  .d-sm-inline { display: inline !important; }
  .d-sm-inline-block { display: inline-block !important; }
  .d-sm-block { display: block !important; }
  .d-sm-flex { display: flex !important; }
  
  .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%; }
  
  .text-sm-start { text-align: left !important; }
  .text-sm-end { text-align: right !important; }
  .text-sm-center { text-align: center !important; }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .d-md-none { display: none !important; }
  .d-md-inline { display: inline !important; }
  .d-md-inline-block { display: inline-block !important; }
  .d-md-block { display: block !important; }
  .d-md-flex { display: flex !important; }
  
  .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%; }
  
  .text-md-start { text-align: left !important; }
  .text-md-end { text-align: right !important; }
  .text-md-center { text-align: center !important; }
  
  .flex-md-row { flex-direction: row !important; }
  .flex-md-column { flex-direction: column !important; }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .d-lg-none { display: none !important; }
  .d-lg-inline { display: inline !important; }
  .d-lg-inline-block { display: inline-block !important; }
  .d-lg-block { display: block !important; }
  .d-lg-flex { display: flex !important; }
  
  .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%; }
  
  .text-lg-start { text-align: left !important; }
  .text-lg-end { text-align: right !important; }
  .text-lg-center { text-align: center !important; }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .d-xl-none { display: none !important; }
  .d-xl-inline { display: inline !important; }
  .d-xl-inline-block { display: inline-block !important; }
  .d-xl-block { display: block !important; }
  .d-xl-flex { display: flex !important; }
  
  .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%; }
  
  .text-xl-start { text-align: left !important; }
  .text-xl-end { text-align: right !important; }
  .text-xl-center { text-align: center !important; }
}
