/* ===== VARIABLES CSS — paleta azul + estilo “soft UI” (tarjetas redondeadas, sombras suaves) ===== */
:root {
  /* Paleta base (solicitada) */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;

  --bg: #f1f5f9;
  --card: #ffffff;

  --border: #e2e8f0;

  --text-main: #0f172a;
  --text-secondary: #64748b;

  /* Azul intermedio para degradados (no confundir con --primary-light de superficie) */
  --primary-bright: #3b82f6;

  /* Compatibilidad con reglas existentes */
  --primary-color: var(--primary);
  --primary-dark: #0f172a;
  --secondary-color: var(--text-secondary);
  --success-color: #22c55e;
  --success-light: #dcfce7;
  --success-text: #166534;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --danger-light: #fee2e2;
  --info-color: #0ea5e9;

  /* Sidebar claro (kit tipo glass / dashboard) */
  --sidebar-bg: var(--card);
  --sidebar-hover: rgba(37, 99, 235, 0.08);
  --sidebar-active: rgba(37, 99, 235, 0.12);
  --sidebar-border: var(--border);
  --sidebar-text: var(--text-main);
  --sidebar-muted: var(--text-secondary);

  /* Colores de estado de orden */
  --status-recepcion: #64748b;
  --status-diagnostico: #0ea5e9;
  --status-presupuesto: #f59e0b;
  --status-aprobacion: #f97316;
  --status-en-reparacion: #22c55e;
  --status-espera-repuesto: #8b5cf6;
  --status-lavado: #3b82f6;
  --status-control-calidad: #14b8a6;
  --status-facturacion: #ef4444;
  --status-entregado: #22c55e;

  /* Fondos */
  --bg-primary: var(--card);
  --bg-secondary: var(--bg);
  --bg-tertiary: #e8eef5;
  --bg-dark: #0f172a;
  --bg-sidebar: var(--card);
  --bg-gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-bright) 100%);

  /* Texto */
  --text-primary: var(--text-main);
  --text-muted: #94a3b8;
  --text-white: #ffffff;
  --text-dark: var(--text-main);

  /* Sombras estilo tarjeta flotante */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px -8px rgba(15, 23, 42, 0.1), 0 4px 12px -4px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 48px -12px rgba(15, 23, 42, 0.12), 0 6px 20px -6px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 24px 64px -16px rgba(15, 23, 42, 0.14);
  --shadow-card: 0 12px 40px -16px rgba(15, 23, 42, 0.1), 0 4px 16px -4px rgba(15, 23, 42, 0.06);

  /* Radios “pill / bubble” acercados al kit de referencia */
  --border-radius: 0.75rem;
  --border-radius-lg: 1.125rem;
  --border-radius-xl: 1.5rem;
  --radius-pill: 9999px;

  /* Espaciado */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Bootstrap 5 — alinear componentes con la paleta */
  --bs-primary: #2563eb;
  --bs-primary-rgb: 37, 99, 235;
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text-main);
  --bs-border-color: var(--border);
  --bs-link-color: var(--primary);
  --bs-link-hover-color: var(--primary-hover);
}

/* ===== RESET Y BASE ===== */
* {
  box-sizing: border-box;
}

body { 
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.95rem; 
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  background-image: radial-gradient(1200px 600px at 10% -10%, rgba(37, 99, 235, 0.06), transparent 50%),
    radial-gradient(900px 500px at 100% 0%, rgba(59, 130, 246, 0.05), transparent 45%);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== NAVBAR — superficie tipo “glass” sobre fondo suave ===== */
.navbar {
  background: rgba(255, 255, 255, 0.82) !important;
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

/* Marca: logo imagen + texto */
.navbar-brand-movicrm {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.app-brand-logo {
  height: 36px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  flex-shrink: 0;
}

.navbar-brand-movicrm:hover .app-brand-logo {
  opacity: 0.9;
}

.movicrm-brand-text {
  display: inline-block;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(
    92deg,
    var(--primary) 0%,
    var(--primary-bright) 45%,
    var(--primary-hover) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transition: filter 0.25s ease, transform 0.2s ease;
}

.navbar-brand-movicrm:hover .movicrm-brand-text {
  filter: brightness(1.1) saturate(1.05);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
  color: var(--text-primary) !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

.navbar-brand:hover:not(.navbar-brand-movicrm) {
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  padding: 0.6rem 0.9rem !important;
  border-radius: var(--border-radius);
  margin: 0 0.15rem;
  transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--text-primary) !important;
  background: var(--bg-tertiary);
}

.navbar-nav .nav-link.active {
  background: var(--success-light);
  color: var(--success-color) !important;
}

/* ===== SIDEBAR FIJO — panel claro con acento azul (estilo kit / soft UI) ===== */
.sidebar-fixed {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 220px;
  height: 100vh;
  min-height: 100vh;
  background: var(--sidebar-bg) !important;
  border-right: 1px solid var(--sidebar-border);
  box-shadow: 4px 0 32px -8px rgba(15, 23, 42, 0.08);
  z-index: 1030;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, width 0.3s ease;
  overflow: hidden;
}

.sidebar-fixed.sidebar-hidden {
  transform: translateX(-100%);
  pointer-events: none;
}

.sidebar-header {
  background: var(--sidebar-bg) !important;
  color: var(--sidebar-text) !important;
  padding: 1rem 1.25rem;
  flex-shrink: 0;
  border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-header-toggle {
  color: var(--sidebar-muted) !important;
}

.sidebar-header-toggle:hover {
  color: var(--primary) !important;
}

.sidebar-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--sidebar-text) !important;
}

.sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.sidebar-body::-webkit-scrollbar {
  width: 6px;
}

.sidebar-body::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
}

.sidebar-body::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 235, 0.25);
  border-radius: 6px;
}

/* Contenido principal: padding-left reserva espacio para sidebar, fondo continuo sin gap */
.main-header {
  transition: all 0.3s ease;
  margin-left: 0;
  padding-left: 220px;
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.78) !important;
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.main-header .container-fluid {
  padding-left: 0.5rem;
  padding-right: 1rem;
}

.main-wrapper {
  transition: all 0.3s ease;
  margin-left: 0;
  padding-left: 220px;
  width: 100%;
  box-sizing: border-box;
  background: transparent;
}

body.sidebar-visible .main-header,
body.sidebar-visible .main-wrapper {
  padding-left: 220px;
}

body.sidebar-hidden .main-header,
body.sidebar-hidden .main-wrapper {
  padding-left: 0;
}

.sidebar-toggle-btn {
  position: fixed !important;
  top: 1rem !important;
  left: 1rem !important;
  z-index: 1040;
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-xl);
  background: var(--bg-gradient) !important;
  color: var(--text-white) !important;
  border: none;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-toggle-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
  color: var(--text-white) !important;
}

.sidebar-link {
  color: var(--sidebar-muted) !important;
  padding: 0.65rem 1rem !important;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin-right: 0.5rem;
}

.sidebar-link:hover {
  background: var(--sidebar-hover) !important;
  color: var(--sidebar-text) !important;
  border-left-color: var(--primary);
}

.sidebar-link.active {
  background: var(--sidebar-active) !important;
  color: var(--primary) !important;
  font-weight: 600;
  border-left-color: var(--primary);
}

.sidebar-link i {
  color: var(--sidebar-muted) !important;
  opacity: 0.95;
}

.sidebar-link:hover i {
  color: var(--primary) !important;
  opacity: 1;
}

.sidebar-link.active i {
  color: var(--primary) !important;
  opacity: 1;
}

.sidebar-section {
  color: var(--text-muted) !important;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.75rem 1rem 0.35rem !important;
  pointer-events: none;
}

.sidebar-toggle {
  color: var(--sidebar-text) !important;
  padding: 0.65rem 1rem !important;
  font-weight: 500;
  display: flex !important;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  text-decoration: none !important;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin-right: 0.5rem;
}

.sidebar-toggle:hover {
  background: var(--sidebar-hover) !important;
  color: var(--primary) !important;
  border-left-color: var(--primary);
}

.sidebar-toggle[aria-expanded="true"] {
  background: var(--sidebar-active) !important;
  border-left-color: var(--primary);
}

.sidebar-toggle[aria-expanded="true"] .sidebar-chevron {
  transform: rotate(180deg);
}

.sidebar-chevron {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
  color: var(--sidebar-muted) !important;
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 0.25rem 1rem;
}

/* Iconos semánticos en sidebar (fondo claro) */
.sidebar-body .text-success { color: #16a34a !important; }
.sidebar-body .text-danger { color: #dc2626 !important; }
.sidebar-body .text-primary { color: var(--primary) !important; }
.sidebar-body .text-warning { color: #d97706 !important; }
.sidebar-body .text-info { color: #0284c7 !important; }

.dropdown-menu {
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--bg-primary);
  margin-top: 0.5rem;
  padding: 0.35rem 0;
}

.dropdown-item {
  padding: 0.6rem 1.25rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 0.25rem;
  margin: 0 0.25rem;
}

.dropdown-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

/* ===== LAYOUT PRINCIPAL - Padding del contenido ===== */
main.container {
  max-width: 1440px;
  margin-left: 0 !important;
  margin-right: auto;
  padding: var(--spacing-md) 1rem;
  padding-left: 0.75rem;
}

@media (min-width: 1200px) {
  main.container {
    padding: 1.25rem 1.5rem;
    padding-left: 1rem;
  }
}

/* ===== FORMULARIOS — inputs alineados al kit (radios y foco azul) ===== */
.form-control,
.form-select,
.input-group-text {
  border-radius: var(--border-radius-lg);
  border-color: var(--border);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.modal-content {
  border-radius: var(--border-radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
}

.list-group-item {
  border-color: var(--border);
}

/* ===== TARJETAS — superficie elevada (soft UI) ===== */
.card {
  border: 1px solid var(--border);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-card);
  background: var(--card);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.18);
}

.card-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.card-body {
  padding: 1.25rem;
}

/* ===== BADGES DE ESTADO ===== */
.status-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid transparent;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-badge:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* Colores específicos para cada estado - Paleta SalesPad */
.status-badge[data-status="RECEPCION"] { 
  background: var(--status-recepcion); 
  color: white; 
}
.status-badge[data-status="DIAGNOSTICO"] { 
  background: var(--status-diagnostico); 
  color: white; 
}
.status-badge[data-status="PRESUPUESTO"] { 
  background: var(--status-presupuesto); 
  color: var(--text-dark); 
}
.status-badge[data-status="APROBACION"] { 
  background: var(--status-aprobacion); 
  color: white; 
}
.status-badge[data-status="EN_REPARACION"] { 
  background: var(--status-en-reparacion); 
  color: white; 
}
.status-badge[data-status="ESPERA_REPUESTO"] { 
  background: var(--status-espera-repuesto); 
  color: white; 
}
.status-badge[data-status="LAVADO"] { 
  background: var(--status-lavado); 
  color: white; 
}
.status-badge[data-status="CONTROL_CALIDAD"] { 
  background: var(--status-control-calidad); 
  color: white; 
}
.status-badge[data-status="FACTURACION"] { 
  background: var(--status-facturacion); 
  color: white; 
}
.status-badge[data-status="ENTREGADO"] { 
  background: var(--status-entregado); 
  color: white; 
}

/* ===== BOTONES — primarios con degradado azul (paleta nueva) ===== */
.btn {
  border-radius: var(--border-radius-lg);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  font-size: 0.875rem;
}

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

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary {
  background: var(--bg-gradient);
  color: var(--text-white);
  border: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: var(--card);
}

.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-outline-secondary {
  border: 2px solid var(--secondary-color);
  color: var(--text-dark);
  background: transparent;
}

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

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-dark);
  border: none;
}

.btn-secondary:hover {
  background: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* ===== BOTONES DE ACCIÓN EN TABLA - Simplificados ===== */
.btn-group-sm .btn {
  padding: 0.375rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 0.375rem;
  margin: 0 1px;
  font-weight: 600;
  min-width: 35px;
  max-width: 40px;
  text-align: center;
}

.btn-group-sm .btn:first-child {
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}

.btn-group-sm .btn:last-child {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

/* Efectos especiales para botones de acción */
.btn-group .btn {
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.btn-group .btn:hover {
  z-index: 2;
}

/* Responsividad para botones */
@media (max-width: 768px) {
  .btn-group-sm .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    min-width: 70px;
  }
}

/* ===== TABLAS MEJORADAS ===== */
.table {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  table-layout: fixed; /* Fuerza el uso de anchos fijos */
}

.table thead th {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 55%, var(--primary-bright) 100%);
  border: none;
  font-weight: 700;
  color: white;
  padding: 1.25rem 1rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: normal; /* Permite salto de línea en encabezados si es necesario */
  overflow: visible;
  text-overflow: clip;
  word-wrap: break-word;
  line-height: 1.4;
}

.table tbody tr {
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--border);
}

.table tbody tr:hover {
  background: var(--bg-secondary);
  transform: scale(1.01);
}

/* Estilo para filas inactivas */
.table tbody tr.table-row-inactive {
  background-color: #f8f9fa;
  opacity: 0.75;
}

.table tbody tr.table-row-inactive:hover {
  background-color: #e9ecef;
  opacity: 0.85;
  transform: scale(1.01);
}

.table tbody tr.table-row-inactive td {
  color: #6c757d;
}

.table tbody tr.table-row-inactive td a {
  color: #6c757d;
  opacity: 0.8;
}

.table tbody tr.table-row-inactive td a:hover {
  color: #495057;
  opacity: 1;
}

.table tbody td {
  padding: 0.75rem 0.5rem;
  vertical-align: middle;
  border: none;
  white-space: normal; /* Permite salto de línea para mejor legibilidad */
  word-wrap: break-word;
  font-size: 0.85rem;
}

/* Estilos específicos para diferentes tipos de contenido en celdas */
.table tbody td .badge {
  font-size: 0.65rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  white-space: nowrap;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.table tbody td .btn-group {
  white-space: nowrap;
  display: inline-flex;
  flex-wrap: nowrap;
}

/* Asegurar que la columna de acciones tenga suficiente espacio */
.table thead th:last-child,
.table tbody td:last-child {
  min-width: 150px;
  white-space: nowrap;
}

/* Ajustes para columnas específicas */
.table tbody td:nth-child(1), /* ID/Numero */
.table tbody td:nth-child(2) { /* Orden/Nombre */
  text-align: center;
}

.table tbody td:nth-child(3), /* Placa/Email */
.table tbody td:nth-child(4) { /* Marca/Teléfono */
  text-align: center;
}

/* Responsividad mejorada para tablas */
@media (max-width: 1200px) {
  .table thead th,
  .table tbody td {
    padding: 0.5rem 0.375rem;
    font-size: 0.8rem;
  }
  
  .table thead th {
    font-size: 0.75rem;
  }
  
  .btn-group-sm .btn {
    padding: 0.25rem 0.375rem;
    font-size: 0.7rem;
    min-width: 30px;
    max-width: 35px;
  }
}

@media (max-width: 992px) {
  .table thead th,
  .table tbody td {
    padding: 0.375rem 0.25rem;
    font-size: 0.75rem;
  }
  
  .btn-group-sm .btn {
    padding: 0.25rem 0.375rem;
    font-size: 0.65rem;
    min-width: 28px;
    max-width: 32px;
  }
  
  .badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
  }
}

@media (max-width: 768px) {
  .table {
    font-size: 0.7rem;
  }
  
  .table thead th,
  .table tbody td {
    padding: 0.25rem 0.125rem;
  }
  
  .btn-group-sm .btn {
    padding: 0.2rem 0.25rem;
    font-size: 0.6rem;
    min-width: 25px;
    max-width: 30px;
  }
  
  .badge {
    font-size: 0.55rem;
    padding: 0.15rem 0.3rem;
  }
}

/* ===== FORMULARIOS MEJORADOS ===== */
.form-control, .form-select {
  border: 2px solid #e2e8f0;
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: var(--bg-primary);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
  background: var(--bg-primary);
}

.form-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* ===== ALERTAS MEJORADAS ===== */
.alert {
  border: none;
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  border-left: 4px solid;
}

.alert-success {
  background: var(--success-light);
  border-left-color: var(--success-color);
  color: var(--success-text);
}

.alert-warning {
  background: #fff3cd;
  border-left-color: var(--warning-color);
  color: #856404;
}

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

.alert-info {
  background: #d1ecf1;
  border-left-color: var(--info-color);
  color: #0c5460;
}

/* ===== TARJETAS DE ESTADO ===== */
.status-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bg-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.status-card:hover::before {
  transform: scaleX(1);
}

.status-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ===== DASHBOARD - Tamaños optimizados para pantalla ===== */
.dashboard-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.dashboard-summary .card-body {
  padding: 1.25rem 1rem;
  min-height: 120px;
}

@media (min-width: 768px) {
  .dashboard-summary .card-body {
    padding: 1.5rem 1.25rem;
    min-height: 130px;
  }
}

@media (min-width: 1200px) {
  .dashboard-summary .card-body {
    padding: 1.5rem 1.5rem;
    min-height: 140px;
  }
}

.dashboard-summary .card h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
}

.dashboard-summary .card .fs-1 {
  font-size: clamp(2rem, 3vw, 2.5rem) !important;
  opacity: 0.85;
}

.dashboard-status .card-body {
  padding: 1.25rem 1rem;
  min-height: 110px;
}

@media (min-width: 768px) {
  .dashboard-status .card-body {
    padding: 1.25rem 1.25rem;
    min-height: 120px;
  }
}

.dashboard-status h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
}

.dashboard-status .status-badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
}

.dashboard-filters .form-control,
.dashboard-filters .form-select {
  min-height: 42px;
  font-size: 0.9375rem;
}

.dashboard-filters .form-label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

.pulse {
  animation: pulse 2s infinite;
}

/* ===== EFECTOS DE CARGA ===== */
.loading {
  position: relative;
  overflow: hidden;
}

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

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

/* ===== ESTILOS PARA TABLA DE DASHBOARD ===== */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-sm th,
.table-sm td {
  padding: 0.5rem 0.4rem;
  font-size: 0.875rem;
}

.table-sm .badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.table-sm .btn-sm {
  padding: 0.2rem 0.4rem;
  font-size: 0.75rem;
}

.sticky-top {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  z-index: 10;
}

.main-header.sticky-top {
  background: rgba(255, 255, 255, 0.88) !important;
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  z-index: 1020;
  overflow: visible;
}

/* ===== RESPONSIVIDAD GLOBAL ===== */
/* Tablet y abajo: sidebar como overlay, contenido a ancho completo */
@media (max-width: 991px) {
  .sidebar-fixed {
    width: 280px;
    max-width: 85vw;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1030;
    transition: transform 0.25s ease;
  }

  .sidebar-fixed.sidebar-hidden {
    transform: translateX(-100%);
    pointer-events: none;
  }

  .main-header,
  .main-wrapper {
    padding-left: 0 !important;
  }

  body.sidebar-visible .main-header,
  body.sidebar-visible .main-wrapper {
    padding-left: 0 !important;
  }

  body.sidebar-visible .sidebar-backdrop {
    display: block;
  }

  body.sidebar-visible {
    overflow: hidden;
  }

  main.container {
    max-width: 100%;
    padding-left: var(--spacing-md) !important;
    padding-right: var(--spacing-md) !important;
  }

  .navbar .container-fluid {
    padding-left: 0.5rem;
    padding-right: 0.75rem;
  }

  .sidebar-toggle-btn {
    display: block !important;
  }

  /* Touch: targets mínimos 44px */
  .sidebar-link,
  .sidebar-toggle {
    min-height: 44px;
    padding: 0.75rem 1rem !important;
    display: flex;
    align-items: center;
  }
}

/* Backdrop para sidebar en móvil */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1025;
  transition: opacity 0.25s ease;
}

@media (min-width: 992px) {
  .sidebar-backdrop {
    display: none !important;
  }
}

/* Móvil pequeño */
@media (max-width: 768px) {
  .app-brand-logo {
    max-width: 96px;
    height: 28px;
  }

  .movicrm-brand-text {
    font-size: 1.22rem;
  }

  .navbar-brand {
    font-size: 1.15rem;
  }

  .navbar-brand span:not(.movicrm-brand-text) {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .navbar-brand-movicrm .movicrm-brand-text {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .card-body {
    padding: 1rem;
  }

  .card-header {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .btn {
    padding: 0.625rem 1.25rem;
    min-height: 44px;
  }

  .table-responsive {
    border-radius: var(--border-radius);
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .table-responsive .table {
    margin-bottom: 0;
  }

  .status-badge {
    font-size: 0.7rem;
    padding: 0.375rem 0.75rem;
  }

  main.container {
    padding: var(--spacing-md) 0.75rem !important;
  }

  .main-header .nav-link {
    padding: 0.5rem !important;
  }

  .dropdown .dropdown-toggle {
    font-size: 0.875rem;
  }
}

@media (max-width: 576px) {
  main.container {
    padding: var(--spacing-sm) 0.5rem !important;
  }

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

  .btn-group {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .btn-group .btn {
    border-radius: var(--border-radius) !important;
  }

  /* Filtros en columna en móvil */
  .row.g-3 .col-md-4,
  .row.g-3 .col-md-3,
  .row.g-3 .col-lg-2 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .d-flex.flex-wrap.gap-2 {
    flex-direction: column;
    align-items: stretch;
  }

  .d-flex.flex-wrap.gap-2 .btn {
    width: 100%;
  }
}

/* ===== UTILIDADES ===== */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-custom {
  box-shadow: var(--shadow-lg);
}

.border-gradient {
  border: 2px solid;
  border-image: linear-gradient(135deg, #1e3a5f 0%, #007bff 100%) 1;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== SCROLLBAR PERSONALIZADO ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

/* ===== ESTADOS DE FOCUS MEJORADOS ===== */
*:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ===== MEJORAS ESPECÍFICAS PARA PANTALLAS DE PROYECCIÓN ===== */
@media (min-width: 1200px) {
  .order-details {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 2px solid #e2e8f0;
  }
  
  .order-details .fw-bold {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
  }
  
  .order-details .text-muted {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
  }
  
  .order-details .badge {
    font-size: 0.9rem;
    padding: 0.625rem 1rem;
    font-weight: 700;
  }
  
  .table th {
    font-size: 1.1rem;
    padding: 1.5rem 1rem;
    font-weight: 800;
  }
  
  .table td {
    font-size: 1rem;
    padding: 1.25rem 1rem;
    font-weight: 500;
  }
  
  .fw-bold.text-primary {
    font-size: 1.4rem;
    font-weight: 900;
  }
}

/* ===== INDICADORES DE REPUESTOS ===== */
.repuestos-indicator {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 0.25rem;
}

.repuestos-indicator.pendientes {
  background-color: #dc3545;
  color: white;
}

.repuestos-indicator.pedidos {
  background-color: #ffc107;
  color: #000;
}

.repuestos-indicator.facturados {
  background-color: #17a2b8;
  color: white;
}

.repuestos-indicator.en-transito {
  background-color: #007bff;
  color: white;
}

/* Indicador especial para órdenes con repuestos */
.status-badge + .repuestos-indicator {
  margin-left: 0.5rem;
}

/* Mejora para la visualización de repuestos en listas */
.table tbody td .repuestos-indicator {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  margin-top: 0.2rem;
  display: block;
  width: fit-content;
}
[data-bs-toggle="collapse"] {
  transition: all 0.3s ease;
  border-radius: var(--border-radius);
}

[data-bs-toggle="collapse"]:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

[data-bs-toggle="collapse"] i {
  transition: transform 0.3s ease;
}

[data-bs-toggle="collapse"][aria-expanded="true"] i {
  transform: rotate(180deg);
}

/* ===== MEJORAS PARA ORDENAMIENTO ===== */
.sortable {
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
  position: relative;
}

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

.sortable i {
  transition: all 0.3s ease;
  opacity: 0.7;
}

.sortable:hover i {
  color: var(--primary-color);
  opacity: 1;
  transform: scale(1.1);
}

/* ===== CLASES DE GRADIENTE ===== */
.bg-gradient {
  background: var(--bg-gradient) !important;
  color: var(--text-white) !important;
}

.bg-gradient-header {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 50%, var(--primary-bright) 100%) !important;
  color: var(--text-white) !important;
  position: relative;
  overflow: hidden;
}

.bg-gradient-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.06) 0%, transparent 50%, rgba(255,255,255,0.03) 100%);
  pointer-events: none;
}

.bg-gradient-header .badge {
  background: rgba(255, 255, 255, 0.2) !important;
  color: var(--text-white) !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ===== ESTILOS UNIFORMES PARA LISTAS ===== */
/* Clase para estandarizar el espaciado de las listas */
.uniform-list {
  margin-bottom: 2rem;
}

.uniform-list .card-header {
  padding: 1.5rem 2rem;
  border-bottom: 2px solid var(--border);
}

.uniform-list .card-header h5 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.uniform-list .card-header .badge {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
}

/* Estandarización de botones de acción en todas las listas */
.uniform-list .btn-group-sm .btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 0.5rem;
  margin: 0 1px;
  min-width: 70px;
  transition: all 0.3s ease;
}

.uniform-list .btn-group-sm .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Estandarización de badges en todas las listas */
.uniform-list .badge {
  font-size: 0.75rem;
  padding: 0.5rem 0.875rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Estandarización de enlaces en las listas */
.uniform-list a {
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.uniform-list a:hover {
  text-decoration: underline;
  transform: translateY(-1px);
}

/* Estandarización de estados vacíos */
.uniform-list .empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
}

.uniform-list .empty-state i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.uniform-list .empty-state h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.uniform-list .empty-state p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Estandarización de filtros */
.uniform-list .filters-section {
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.uniform-list .filters-section .form-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.uniform-list .filters-section .form-control,
.uniform-list .filters-section .form-select {
  border: 2px solid #e2e8f0;
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.uniform-list .filters-section .form-control:focus,
.uniform-list .filters-section .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Responsividad mejorada para listas uniformes */
@media (max-width: 768px) {
  .uniform-list .card-header {
    padding: 1rem 1.5rem;
  }
  
  .uniform-list .card-header h5 {
    font-size: 1.1rem;
  }
  
  .uniform-list .filters-section {
    padding: 1rem;
  }
  
  .uniform-list .btn-group-sm .btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.7rem;
    min-width: 60px;
  }
  
  .uniform-list .badge {
    font-size: 0.7rem;
    padding: 0.375rem 0.75rem;
  }
}

/* ===== ANIMACIONES PARA NOTIFICACIONES ===== */
@keyframes notificationPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
  }
}

@keyframes notificationBounce {
  0%, 100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-5px);
  }
  75% {
    transform: translateY(-3px);
  }
}

@keyframes bellRing {
  0%, 100% {
    transform: rotate(0deg);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: rotate(-10deg);
  }
  20%, 40%, 60%, 80% {
    transform: rotate(10deg);
  }
}

.notification-badge-new {
  animation: notificationPulse 1s ease-in-out infinite, notificationBounce 0.6s ease-in-out;
}

.notification-icon-new {
  animation: bellRing 0.5s ease-in-out;
  color: #ffc107 !important;
}

.notification-badge-flash {
  animation: notificationPulse 0.5s ease-in-out 3;
}

/* ===== ESTILOS PARA ICONOS DE BOTONES ===== */
/* Iconos más visibles y modernos */
.btn i {
  font-size: 0.9rem;
  vertical-align: middle;
  line-height: 1;
}

.btn-group-sm .btn i {
  font-size: 0.8rem;
}

/* Iconos específicos más claros */
.btn i.bi-eye,
.btn i.bi-pencil,
.btn i.bi-tools,
.btn i.bi-arrow-repeat,
.btn i.bi-chat-dots {
  font-weight: 600;
}

/* Mejor visibilidad en botones outline */
.btn-outline-primary i,
.btn-outline-info i,
.btn-outline-danger i,
.btn-outline-warning i {
  opacity: 0.9;
}

.btn-outline-primary:hover i,
.btn-outline-info:hover i,
.btn-outline-danger:hover i,
.btn-outline-warning:hover i {
  opacity: 1;
}

/* Iconos en botones pequeños más centrados */
.btn-group-sm .btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-group-sm .btn i {
  margin: 0;
}

/* Optimización para tabla de órdenes */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive table {
  min-width: 100%;
  table-layout: auto;
}

.table-sm th,
.table-sm td {
  padding: 0.4rem 0.5rem;
  font-size: 0.875rem;
  vertical-align: middle;
}

.table-sm .badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
}

.table-sm .btn-sm {
  padding: 0.2rem 0.4rem;
  font-size: 0.75rem;
  line-height: 1.2;
}

/* Mejora para columnas con texto largo */
.table-sm td[title] {
  cursor: help;
}

/* Asegurar que los botones no se envuelvan */
.btn-group-sm {
  display: inline-flex;
  flex-wrap: nowrap;
}

.btn-group-sm .btn {
  flex-shrink: 0;
  min-width: 32px;
}

/* Optimización para badges de estado en tabla */
.table-sm .status-badge {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

/* Mejora para columna de días */
.table-sm td:has(.badge.bg-danger),
.table-sm td:has(.badge.bg-warning),
.table-sm td:has(.badge.bg-success) {
  min-width: 140px;
}

/* Tooltip mejorado */
[title] {
  position: relative;
}

/* ===== PÁGINAS DE AUTENTICACIÓN (login / registro) — mismo look que la app ===== */
body.auth-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg);
  background-image: radial-gradient(1200px 600px at 10% -10%, rgba(37, 99, 235, 0.08), transparent 50%),
    radial-gradient(900px 500px at 100% 0%, rgba(59, 130, 246, 0.06), transparent 45%);
  -webkit-font-smoothing: antialiased;
}

/* Login: imagen de fondo (mismo archivo que antes) + velo azul */
body.auth-page.auth-page--login-photo {
  background-color: var(--text-main);
  background-image: linear-gradient(
      135deg,
      rgba(37, 99, 235, 0.78) 0%,
      rgba(15, 23, 42, 0.74) 100%
    ),
    url("images/BackGround.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  animation: authFadeInUp 0.45s ease-out;
}

.auth-shell--wide {
  max-width: 720px;
}

@keyframes authFadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-card {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-card);
  padding: 2.5rem 2rem;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.auth-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.15);
}

.auth-brand {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-brand-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.75rem;
}

.app-brand-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.auth-logo {
  max-width: 220px;
  width: 100%;
  height: auto;
  max-height: 56px;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.25rem;
}

.app-version {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary, #2563eb);
  line-height: 1.2;
  margin-top: 0.15rem;
}

.app-version--nav {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 0.1rem;
  opacity: 0.9;
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.35rem;
  background: linear-gradient(
    92deg,
    var(--primary) 0%,
    var(--primary-bright) 45%,
    var(--primary-hover) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.auth-subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 400;
}

.auth-page .form-label {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-page .form-label i {
  color: var(--primary);
  font-size: 1.05rem;
}

.auth-page .form-control,
.auth-page .form-select {
  border-width: 1px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

.auth-page .form-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.auth-page .alert {
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border);
}

.auth-page .btn-primary {
  text-transform: none;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.auth-register-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.25rem;
}

@media (max-width: 576px) {
  .auth-card {
    padding: 1.75rem 1.25rem;
    border-radius: var(--border-radius-lg);
  }

  .auth-title {
    font-size: 1.5rem;
  }
}
