/* Shared Component Styles with Pure CSS Integration */

/* ===== PURE CSS BUTTON INTEGRATION ===== */
/* Base Pure CSS Button with Mobile-First Design */
.pure-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Mobile-first padding */
  padding: var(--pure-mobile-padding);
  font-size: var(--pure-mobile-font-size);
  font-weight: 600;
  line-height: 1.5;
  border: none;
  border-radius: var(--pure-border-radius);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
  box-sizing: border-box;
}

/* Progressive enhancement for larger screens */
@media screen and (min-width: 48em) { /* md */
  .pure-button {
    padding: var(--pure-tablet-padding);
    font-size: var(--pure-tablet-font-size);
  }
}

@media screen and (min-width: 64em) { /* lg */
  .pure-button {
    padding: var(--pure-desktop-padding);
    font-size: var(--pure-desktop-font-size);
  }
}

.pure-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.pure-button:hover::before {
  left: 100%;
}

.pure-button:focus {
  outline: none;
  box-shadow: var(--focus-ring);
}

.pure-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.pure-button:disabled span {
  opacity: 0.7;
}

.pure-button:disabled::before {
  display: none;
}

.pure-button.loading {
  pointer-events: none;
}

.pure-button.loading span {
  opacity: 0;
}

.pure-button.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Pure CSS Button Variants */
.pure-button-primary {
  background: linear-gradient(135deg, var(--pure-primary-color), var(--pure-primary-light));
  color: white;
  box-shadow: var(--shadow-md);
}

.pure-button-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--pure-primary-hover), var(--pure-primary-color));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.pure-button-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.pure-button-secondary:hover:not(:disabled) {
  background: var(--bg-muted);
  border-color: var(--border-dark);
  transform: translateY(-1px);
}

.pure-button-success {
  background: linear-gradient(135deg, var(--success), var(--success-dark));
  color: white;
}

.pure-button-success:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--success-dark), var(--success));
  transform: translateY(-2px);
}

.pure-button-danger {
  background: linear-gradient(135deg, var(--danger), var(--danger-light));
  color: white;
}

.pure-button-danger:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--danger-light), var(--danger));
  transform: translateY(-2px);
}

.pure-button-warning {
  background: linear-gradient(135deg, var(--warning), var(--warning-light));
  color: white;
}

.pure-button-warning:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--warning-light), var(--warning));
  transform: translateY(-2px);
}

/* Pure CSS Button Sizes */
.pure-button-sm {
  padding: var(--pure-mobile-padding);
  font-size: var(--pure-mobile-font-size);
}

@media screen and (min-width: 48em) { /* md */
  .pure-button-sm {
    padding: var(--pure-tablet-padding);
    font-size: var(--pure-tablet-font-size);
  }
}

@media screen and (min-width: 64em) { /* lg */
  .pure-button-sm {
    padding: var(--pure-button-padding-sm);
    font-size: 0.875rem;
  }
}

.pure-button-lg {
  padding: var(--pure-tablet-padding);
  font-size: var(--pure-tablet-font-size);
}

@media screen and (min-width: 48em) { /* md */
  .pure-button-lg {
    padding: var(--pure-desktop-padding);
    font-size: var(--pure-desktop-font-size);
  }
}

@media screen and (min-width: 64em) { /* lg */
  .pure-button-lg {
    padding: var(--pure-button-padding-lg);
    font-size: 1.125rem;
  }
}

.pure-button-outline {
  background: transparent;
  color: var(--pure-primary-color);
  border: 2px solid var(--pure-primary-color);
}

.pure-button-outline:hover {
  background: var(--pure-primary-color);
  color: white;
  transform: translateY(-2px);
}

/* ===== PURE CSS FORM INTEGRATION ===== */
/* Base Pure CSS Form with Mobile-First Design */
.pure-control-group {
  margin-bottom: var(--spacing-lg);
}

.pure-control-group label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.9rem;
}

/* Pure CSS Form Inputs - Mobile-First */
.pure-form .pure-input-1,
.pure-form input[type="text"],
.pure-form input[type="email"],
.pure-form input[type="password"],
.pure-form input[type="number"],
.pure-form input[type="tel"],
.pure-form input[type="url"],
.pure-form input[type="search"],
.pure-form textarea,
.pure-form select {
  width: 100%;
  /* Mobile-first input styling */
  padding: var(--pure-mobile-padding);
  font-size: var(--pure-mobile-font-size);
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  border: var(--pure-input-border);
  border-radius: var(--pure-input-border-radius);
  transition: var(--transition);
  box-sizing: border-box;
}

/* Progressive enhancement for larger screens */
@media screen and (min-width: 48em) { /* md */
  .pure-form .pure-input-1,
  .pure-form input[type="text"],
  .pure-form input[type="email"],
  .pure-form input[type="password"],
  .pure-form input[type="number"],
  .pure-form input[type="tel"],
  .pure-form input[type="url"],
  .pure-form input[type="search"],
  .pure-form textarea,
  .pure-form select {
    padding: var(--pure-tablet-padding);
    font-size: var(--pure-tablet-font-size);
  }
}

@media screen and (min-width: 64em) { /* lg */
  .pure-form .pure-input-1,
  .pure-form input[type="text"],
  .pure-form input[type="email"],
  .pure-form input[type="password"],
  .pure-form input[type="number"],
  .pure-form input[type="tel"],
  .pure-form input[type="url"],
  .pure-form input[type="search"],
  .pure-form textarea,
  .pure-form select {
    padding: var(--pure-desktop-padding);
    font-size: var(--pure-desktop-font-size);
  }
}

/* Focus states */
.pure-form .pure-input-1:focus,
.pure-form input:focus,
.pure-form textarea:focus,
.pure-form select:focus {
  outline: none;
  border-color: var(--pure-primary-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.pure-form .pure-input-1::placeholder,
.pure-form input::placeholder,
.pure-form textarea::placeholder {
  color: var(--text-muted);
}

.pure-form .pure-input-1:read-only,
.pure-form input:read-only,
.pure-form textarea:read-only {
  background-color: var(--bg-muted);
  cursor: not-allowed;
}

.pure-form .pure-input-1.error,
.pure-form input.error,
.pure-form textarea.error,
.pure-form select.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Pure CSS Input Width Classes */
.pure-input-1 { width: 100%; }
.pure-input-1-2 { width: 50%; }
.pure-input-1-3 { width: 33.333%; }
.pure-input-2-3 { width: 66.667%; }
.pure-input-1-4 { width: 25%; }
.pure-input-3-4 { width: 75%; }

/* Mobile-first responsive input widths */
@media screen and (max-width: 47.99em) { /* < md */
  .pure-input-1-2,
  .pure-input-1-3,
  .pure-input-2-3,
  .pure-input-1-4,
  .pure-input-3-4 {
    width: 100%;
  }
}

/* Pure CSS Form Elements */
.pure-input-rounded {
  border-radius: var(--pure-border-radius-lg);
}

.pure-checkbox,
.pure-radio {
  margin-right: var(--spacing-sm);
  width: 1rem;
  height: 1rem;
}

.pure-form-message {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--spacing-xs);
}

.pure-form-message-inline {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-left: var(--spacing-sm);
}

.pure-group {
  display: flex;
  gap: var(--spacing-sm);
}

/* Mobile-first group layout */
@media screen and (max-width: 47.99em) { /* < md */
  .pure-group {
    flex-direction: column;
  }
}

/* Enhanced Form Components with Pure CSS */
.form-row {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

/* Mobile-first form row */
@media screen and (max-width: 47.99em) { /* < md */
  .form-row {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
}

.form-col {
  flex: 1;
}

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

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  margin-right: var(--spacing-sm);
  width: 1rem;
  height: 1rem;
}

.form-check label {
  margin-bottom: 0;
  cursor: pointer;
}

.form-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--spacing-xs);
}

.form-inline {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

/* Mobile-first inline form */
@media screen and (max-width: 47.99em) { /* < md */
  .form-inline {
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-sm);
  }
}

/* ===== LEGACY BUTTON SUPPORT ===== */
/*
Legacy classes such as .btn, .btn-primary, etc. are deprecated.
Please use the equivalent Pure CSS classes directly in your HTML:
- .btn           => .pure-button
- .btn-primary   => .pure-button .pure-button-primary
- .btn-secondary => .pure-button .pure-button-secondary
- .btn-success   => .pure-button .pure-button-success
- .btn-danger    => .pure-button .pure-button-danger
- .btn-warning   => .pure-button .pure-button-warning
- .btn-sm        => .pure-button .pure-button-sm
- .btn-lg        => .pure-button .pure-button-lg
- .btn-outline   => .pure-button .pure-button-outline
*/

/* ===== LEGACY FORM SUPPORT ===== */
/*
Legacy classes such as .form-group and .form-control are deprecated.
Please use the equivalent Pure CSS classes directly in your HTML:
- .form-group   => .pure-control-group
- .form-control => .pure-input-1 (with .pure-form)
*/

/* ===== TABLES ===== */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin: var(--spacing-md) 0;
  background: var(--bg-primary);
  overflow-x: auto;
  display: block;
}

.table th,
.table td {
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  text-align: left;
}

.table th {
  background-color: var(--bg-muted);
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:nth-child(even) {
  background-color: var(--bg-muted);
}

.table tr {
  transition: var(--transition);
}

.table tr:hover {
  background-color: rgba(var(--primary-rgb), 0.04);
  transform: scale(1.01);
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

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

.table-hover tbody tr:hover {
  background-color: rgba(var(--primary-rgb), 0.04);
}

/* ===== NAVIGATION ===== */
.nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin-right: var(--spacing-md);
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: var(--transition);
  font-weight: 500;
}

.nav-link:hover {
  color: var(--primary);
  background-color: var(--bg-muted);
}

.nav-link.active {
  color: var(--primary);
  background-color: rgba(var(--primary-rgb), 0.1);
}

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

.nav-tabs .nav-link {
  border: 1px solid transparent;
  border-bottom: none;
  margin-bottom: -1px;
}

.nav-tabs .nav-link.active {
  border-color: var(--border-color);
  border-bottom-color: var(--bg-primary);
  background-color: var(--bg-primary);
}

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

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

/* ===== PROGRESS INDICATORS ===== */
.progress {
  width: 100%;
  height: 0.5rem;
  background-color: var(--bg-muted);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: var(--spacing-sm) 0;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.progress-sm {
  height: 0.25rem;
}

.progress-lg {
  height: 1rem;
}

/* ===== STEP INDICATORS ===== */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: var(--spacing-lg) 0;
}

.step-item {
  display: flex;
  align-items: center;
  flex: 1;
  position: relative;
}



.step-item.completed:not(:last-child)::after {
  background-color: var(--success);
}

.step-number {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: var(--bg-muted);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  margin-right: var(--spacing-sm);
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.step-item.active .step-number {
  background-color: var(--primary);
  color: white;
}

.step-item.completed .step-number {
  background-color: var(--success);
  color: white;
}

.step-label {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.step-item.active .step-label {
  color: var(--primary);
  font-weight: 600;
}

.step-item.completed .step-label {
  color: var(--success);
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-primary);
  border-radius: var(--card-border-radius);
  /* Minimal look: remove border and shadow */
  box-shadow: none;
  border: none;
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  transition: var(--transition);
  overflow: hidden;
  position: relative;
}

.card:hover {
  /* Keep flat */
  box-shadow: none;
  transform: none;
}

.status-card {
  background-color: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--card-border-radius);
  box-shadow: var(--box-shadow);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  transition: var(--transition);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.status-card:before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(45deg, rgba(67, 97, 238, 0.02), rgba(76, 201, 240, 0.02));
  z-index: -1;
  border-radius: inherit;
}

.status-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
  transform: translateY(-4px);
}

.card-header {
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--spacing-md);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

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

.card-footer {
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
  margin-top: var(--spacing-md);
}

/* ===== ALERTS & MESSAGES ===== */
.alert {
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  border-color: var(--success-light);
  color: #065f46;
}

.alert-warning {
  background-color: rgba(245, 158, 11, 0.1);
  border-color: var(--warning-light);
  color: #92400e;
}

.alert-error {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: var(--danger-light);
  color: #991b1b;
}

.alert-info {
  background-color: rgba(59, 130, 246, 0.1);
  border-color: var(--primary);
  color: #1e40af;
}

.alert-close {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  transition: var(--transition);
}

.alert-close:hover {
  opacity: 1;
}

.message {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  animation: slideIn 0.3s ease-out;
  position: relative;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-success {
  border-left: 4px solid var(--success);
  background-color: rgba(16, 185, 129, 0.05);
}

.message-error {
  border-left: 4px solid var(--danger);
  background-color: rgba(239, 68, 68, 0.05);
}

.message-info {
  border-left: 4px solid var(--primary);
  background-color: rgba(59, 130, 246, 0.05);
}

.message-warning {
  border-left: 4px solid var(--warning);
  background-color: rgba(245, 158, 11, 0.05);
}

.message-content {
  margin-right: var(--spacing-lg);
}

.message-close {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.message-close:hover {
  background-color: var(--bg-muted);
  color: var(--text-primary);
}

/* ===== TOASTS (Floating Messages) ===== */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 2147483647; /* ensure above everything */
  max-width: min(380px, calc(100vw - 2rem));
  pointer-events: none; /* allow clicks through gaps */
}

.toast {
  pointer-events: auto; /* enable interaction */
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 0.875rem 2.25rem 0.875rem 0.875rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateX(16px);
  opacity: 0;
  max-height: 0; /* collapsed by default for smooth mount */
  margin: 0;
  transition:
    transform 220ms ease,
    opacity 220ms ease,
    max-height 280ms ease,
    margin 280ms ease,
    padding 280ms ease,
    border-width 280ms ease;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
  max-height: 500px; /* large enough for content */
  margin: 0.125rem 0;
}

.toast.closing {
  transform: translateX(16px);
  opacity: 0;
  max-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top-width: 0;
  border-bottom-width: 0;
}

.toast-content {
  font-size: 0.95rem;
  line-height: 1.4;
}

.toast-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 1.125rem;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.toast-close:hover {
  color: var(--text-primary);
  background: var(--bg-muted);
}

/* Type variants */
.toast-success {
  border-left-color: var(--success);
  background: linear-gradient(0deg, rgba(16,185,129,0.06), rgba(16,185,129,0.06)), var(--bg-primary);
}

.toast-error,
.toast-danger {
  border-left-color: var(--danger);
  background: linear-gradient(0deg, rgba(239,68,68,0.06), rgba(239,68,68,0.06)), var(--bg-primary);
}

.toast-warning {
  border-left-color: var(--warning);
  background: linear-gradient(0deg, rgba(245,158,11,0.08), rgba(245,158,11,0.08)), var(--bg-primary);
}

.toast-info {
  border-left-color: var(--primary);
  background: linear-gradient(0deg, rgba(59,130,246,0.06), rgba(59,130,246,0.06)), var(--bg-primary);
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: opacity 0.01ms linear;
    transform: none;
  }
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success {
  background-color: var(--success-light);
  color: #065f46;
}

.badge-warning {
  background-color: var(--warning-light);
  color: #92400e;
}

.badge-danger {
  background-color: var(--danger-light);
  color: #991b1b;
}

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

/* ===== CHIPS ===== */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  background-color: var(--bg-muted);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
}

.chip:hover {
  background-color: var(--bg-secondary);
  transform: translateY(-1px);
}

.chip.active {
  background-color: var(--pure-primary-color);
  color: white;
  border-color: var(--primary);
}

.chip-avatar {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  margin-right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--primary);
  color: white;
}

/* ===== LOADING SPINNERS ===== */
.loading-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-spinner-sm {
  width: 0.75rem;
  height: 0.75rem;
  border-width: 1px;
}

.loading-spinner-lg {
  width: 2rem;
  height: 2rem;
  border-width: 3px;
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

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

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

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

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; } 