/* === FLEX UTILS === */
.d-flex {
  display: flex !important;
}

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

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

.justify-content-between {
  justify-content: space-between !important;
}

.justify-content-center {
  justify-content: center !important;
}

.align-items-center {
  align-items: center !important;
}

.flex-grow-1 {
  flex-grow: 1 !important;
}

.gap-1 {
  gap: 0.25rem !important;
}

.gap-2 {
  gap: 0.5rem !important;
}

.gap-3 {
  gap: 1rem !important;
}

/* === ALIGNMENT UTILS === */
.text-left {
  text-align: left !important;
}

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

/* === TEXT UTILITIES === */
.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

/* === FORM UTILITIES === */
.form-control-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

/* === SPACING === */
.font-weight-600 {
  font-weight: 600;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

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

.me-2 {
  margin-right: 0.5rem !important;
}

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

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

.text-danger {
  color: var(--color-danger) !important;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

/* Grid items should stretch to fill */
.grid-2 > *,
.grid-3 > * {
  height: 100%;
}

/* === ANIMATIONS === */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.spin {
  animation: spin 1s linear infinite;
}

@keyframes staggerFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseSlow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.02);
  }
}

/* === GENERAL UTILS === */
.page-wrapper {
  min-height: 100vh;
}

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

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

.text-red {
  color: var(--color-danger-strong);
}

.w-100 {
  width: 100%;
}

.section {
  padding: 4rem 0;
}

/* === EXTRA UTILS === */
.d-inline-flex {
  display: inline-flex;
}

.flex-column {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.justify-content-end {
  justify-content: flex-end;
}

.align-items-end {
  align-items: flex-end;
}

.gap-4 {
  gap: 1.5rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mb-0 {
  margin-bottom: 0;
}

.ms-2 {
  margin-left: 0.5rem;
}

.py-4 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.mt-0 {
  margin-top: 0;
}

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

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

.text-accent {
  color: var(--color-accent);
}

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

.align-icon-middle {
  vertical-align: -2px;
}

.hidden {
  display: none !important;
}

.icon-12 {
  width: 12px;
  height: 12px;
}

.icon-14 {
  width: 14px;
  height: 14px;
}

.icon-16 {
  width: 16px;
  height: 16px;
}

.icon-20 {
  width: 20px;
  height: 20px;
}

.icon-24 {
  width: 24px;
  height: 24px;
}

.icon-success {
  color: var(--color-success);
}

.icon-primary {
  color: var(--color-info);
}

.icon-danger {
  color: var(--color-danger);
}

.empty-icon {
  width: 48px;
  height: 48px;
  color: var(--color-border);
  margin-bottom: 1rem;
}

.form-control-inline {
  width: 110px;
}

.superadmin-invite-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.6fr) minmax(160px, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .superadmin-invite-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
.card, .sidebar, .dashboard-header, .form-control, .btn { transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; }
