/* ===== VARIABLES MODO OSCURO ===== */
:root {
  /* Colores principales */
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #60a5fa;
  --primary-50: #1e40af;

  /* Colores secundarios */
  --secondary: #94a3b8;
  --secondary-dark: #64748b;
  --secondary-light: #cbd5e1;

  /* Colores de estado */
  --success: #10b981;
  --success-dark: #059669;
  --warning: #f59e0b;
  --warning-dark: #d97706;
  --danger: #ef4444;
  --danger-dark: #dc2626;
  --info: #06b6d4;
  --info-dark: #0891b2;

  /* Escala de grises - Modo Oscuro */
  --gray-50: #0f172a;
  --gray-100: #1e293b;
  --gray-200: #334155;
  --gray-300: #475569;
  --gray-400: #64748b;
  --gray-500: #94a3b8;
  --gray-600: #cbd5e1;
  --gray-700: #e2e8f0;
  --gray-800: #f1f5f9;
  --gray-900: #f8fafc;

  /* Fondos y bordes */
  --bg-body: #0f172a;
  --bg-card: #1e293b;
  --bg-sidebar: #0f172a;
  --border-color: #334155;
  --border-dark: #475569;
  --border-light: #1e293b;

  /* Sombras oscuras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.5);

  /* Textos */
  --text-primary: #f8fafc;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;

  /* Bordes redondeados */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Transiciones */
  --transition: all 0.2s ease-in-out;
  --transition-slow: all 0.3s ease-in-out;
}

/* ===== RESET Y BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 14px;
  overflow-x: hidden;
}

/* ===== LAYOUT PRINCIPAL ===== */
.app-container {
  display: flex;
  min-height: 100vh;
  background: var(--bg-body);
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 280px;
  background: var(--bg-sidebar);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  padding: 0;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
  border-right: 1px solid var(--border-color);
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--gray-100);
}

.sidebar-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.user-info {
  padding: 1rem 1.5rem;
  background: var(--gray-100);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.nav-menu {
  flex: 1;
  padding: 1rem 0;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 0.875rem 1.5rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  border-left: 4px solid transparent;
  margin: 0.25rem 0;
}

.nav-item:hover {
  background: var(--gray-200);
  color: var(--text-primary);
  border-left-color: var(--primary-light);
}

.nav-item.active {
  background: var(--gray-200);
  color: var(--text-primary);
  border-left-color: var(--primary);
  font-weight: 600;
}

.nav-icon {
  margin-right: 0.75rem;
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.logout-btn {
  display: flex;
  align-items: center;
  padding: 0.875rem 1.5rem;
  background: var(--gray-100);
  color: var(--text-muted);
  border: none;
  border-top: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  margin-top: auto;
}

.logout-btn:hover {
  background: var(--danger);
  color: white;
}

/* ===== CONTENIDO PRINCIPAL ===== */
.main-content {
  flex: 1;
  margin-left: 280px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-body);
}

.header {
  background: var(--bg-card);
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.content {
  flex: 1;
  padding: 2rem;
  background: var(--bg-body);
}

/* ===== TARJETAS ===== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;

}

.badge {
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ===== BOTONES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--gray-300);
  color: var(--gray-800);
}

.btn-secondary:hover {
  background: var(--gray-400);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: var(--success-dark);
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: var(--danger-dark);
  transform: translateY(-1px);
}

.btn-warning {
  background: var(--warning);
  color: white;
}

.btn-warning:hover {
  background: var(--warning-dark);
  transform: translateY(-1px);
}

.btn-info {
  background: var(--info);
  color: white;
}

.btn-info:hover {
  background: var(--info-dark);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ===== FORMULARIOS ===== */
.form-group {
  margin-bottom: 1.25rem;
  padding: 5px;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.875rem;
  padding: 5px;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  transition: var(--transition);
  background: var(--gray-100);
  color: var(--text-primary);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  background: var(--gray-200);
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* ===== TABLAS ===== */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
}

.data-table th {
  background: var(--gray-200);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--text-primary);
}

.data-table tr:hover {
  background: var(--gray-200);
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* ===== ACCIONES ===== */
.action-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ===== ESTADOS ===== */
.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.pending {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.approved {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.rejected {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge.completed {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* ===== NOTIFICACIONES ===== */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  color: white;
  font-weight: 500;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-xl);
  animation: slideIn 0.3s ease-out;
}

.notification.success {
  background: var(--success);
  border-left: 4px solid var(--success-dark);
}

.notification.error {
  background: var(--danger);
  border-left: 4px solid var(--danger-dark);
}

.notification.warning {
  background: var(--warning);
  border-left: 4px solid var(--warning-dark);
  color: white;
}

.notification.info {
  background: var(--info);
  border-left: 4px solid var(--info-dark);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===== MODALES ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleIn 0.2s ease-out;
  border: 1px solid var(--border-color);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--gray-200);
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
  color: var(--text-primary);
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===== UTILIDADES ===== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-5 {
  margin-top: 1.25rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-5 {
  margin-bottom: 1.25rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.p-1 {
  padding: 0.25rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-5 {
  padding: 1.25rem;
}

.p-6 {
  padding: 1.5rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.hidden {
  display: none;
}

.block {
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 5px;
  }

  .header {
    padding: 1rem;
  }

  .content {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .card-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .header-actions {
    justify-content: center;
  }

  .action-buttons {
    justify-content: center;
  }

  .data-table {
    font-size: 0.75rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
    justify-content: center;
  }

  .modal-content {
    margin: 1rem;
    width: calc(100% - 2rem);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== ESTADOS DE CARGA ===== */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--text-muted);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

/* ===== SCROLLBAR PERSONALIZADO ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-200);
  border-radius: var(--radius-md);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: var(--radius-md);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* ===== ANIMACIONES ===== */
.fade-in {
  animation: fadeIn 0.3s ease-out;
}

.slide-in {
  animation: slideIn 0.3s ease-out;
}

.scale-in {
  animation: scaleIn 0.2s ease-out;
}

/* ===== EFECTOS HOVER ===== */
.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hover-grow {
  transition: var(--transition);
}

.hover-grow:hover {
  transform: scale(1.02);
}

/* ===== TIPOGRAFÍA MEJORADA ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* ===== MEJORAS ESPECÍFICAS PARA COMPONENTES ===== */
.search-box {
  position: relative;
  margin-bottom: 1.5rem;
}

.search-box .form-control {
  padding-left: 2.5rem;
  background: var(--gray-200);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.filter-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-group select {
  min-width: 200px;
  background: var(--gray-200);
  color: var(--text-primary);
}

.content-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== GRID MODERNO ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.dashboard-card {
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.dashboard-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1rem 0;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.full-width {
  grid-column: 1 / -1;
}

/* ===== MEJORAS PARA FORMULARIOS COMPLEJOS ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

/* ===== ESTILOS PARA ITEMS DE PRESUPUESTO ===== */
.budget-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--gray-200);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}

.budget-item:hover {
  background: var(--gray-300);
}

@media (max-width: 968px) {
  .budget-item {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.item-total {
  font-weight: 600;
  color: var(--primary);
  text-align: right;
  font-size: 1.1rem;
}

/* ===== ESTILOS PARA TOTALES ===== */
.budget-totals {
  background: var(--gray-200);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin-top: 2rem;
  border: 2px solid var(--primary);
}

.total-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.grand-total {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  border-top: 2px solid var(--primary);
  margin-top: 1rem;
  padding-top: 1rem;
}

/* ===== MEJORAS PARA TABLAS ===== */
.data-table th {
  position: sticky;
  top: 0;
  background: var(--gray-200);
  z-index: 10;
}

.data-table tr {
  transition: var(--transition);
}

.data-table tr:last-child td {
  border-bottom: 1px solid var(--border-color);
}

.data-table tr:last-child:hover td {
  border-bottom: 1px solid var(--border-dark);
}

/* ===== EFECTOS DE TRANSICIÓN MEJORADOS ===== */
* {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn,
.card,
.nav-item,
.modal-close {
  transition: var(--transition-slow);
}

/* ===== ESTILOS PARA ESTADOS VACÍOS ===== */
.text-center .empty-state {
  padding: 3rem 1rem;
}

.text-center .empty-state .btn {
  margin-top: 1rem;
}

/* ===== MEJORAS DE ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== ESTILOS PARA FOCO MEJORADOS ===== */
.btn:focus-visible,
.form-control:focus-visible,
.modal-close:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ===== SWITCH MODO CLARO/OSCURO (OPCIONAL) ===== */
.theme-switch {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.theme-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.theme-btn:hover {
  transform: scale(1.1);
}

/* ===== ESTILOS ESPECÍFICOS PARA MODAL DE PRESUPUESTO ===== */
.budget-modal .modal-content {
  max-width: 900px;
}

.budget-modal .modal-body {
  max-height: 60vh;
  overflow-y: auto;
}

.budget-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.budget-info-item {
  background: var(--gray-200);
  padding: 1rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}

.budget-info-item strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.budget-items-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--bg-card);
}

.budget-items-table th {
  background: var(--gray-200);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.budget-items-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

.budget-items-table tr:hover {
  background: var(--gray-200);
}

.budget-totals-modal {
  background: var(--gray-200);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin-top: 1.5rem;
  border: 2px solid var(--primary-light);
}

/* ===== ESTILOS PARA TABLAS EN MODO OSCURO ===== */
.data-table {
  background: var(--bg-card);
  color: var(--text-primary);
}

.data-table th {
  background: var(--gray-200);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
}

.data-table tr:hover {
  background: var(--gray-200);
}

/* ===== SOBREESCRIBIR ESTILOS EN LÍNEA ===== */
.modal-content {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
}

.modal-header {
  border-bottom: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
}

.modal-body {
  color: var(--text-primary) !important;
}

.modal-footer {
  border-top: 1px solid var(--border-color) !important;
}

/* ===== FORZAR ESTILOS OSCUROS EN ELEMENTOS DINÁMICOS ===== */
[style*="background: white"],
[style*="background:white"],
[style*="background:#fff"],
[style*="background: #fff"] {
  background: var(--bg-card) !important;
}

[style*="color: black"],
[style*="color:black"],
[style*="color:#000"],
[style*="color: #000"] {
  color: var(--text-primary) !important;
}

[style*="color: #333"],
[style*="color:#333"],
[style*="color: #666"],
[style*="color:#666"] {
  color: var(--text-secondary) !important;
}

/* ===== ESTILOS PARA TEXTO EN TABLAS ===== */
td,
th {
  color: var(--text-primary) !important;
}

/* ===== ESTILOS ESPECÍFICOS PARA CONTENIDO DINÁMICO ===== */
.modal-body h4 {
  color: var(--text-primary) !important;
  margin: 1rem 0 0.5rem 0;
}

.modal-body p {
  color: var(--text-secondary) !important;
}

.modal-body strong {
  color: var(--text-primary) !important;
}

/* ===== ESTILOS MEJORADOS PARA CLIENTES ===== */

/* Contenedor principal de clientes */
.clients-container {
  padding: 1rem;
}

/* Header mejorado */
.clients-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

/* Toolbar de clientes */
.clients-toolbar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 300px;
}

.search-box .form-control {
  padding-left: 2.5rem;
  background: var(--gray-200);
  border: 1px solid var(--border-color);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Tarjeta de cliente mejorada */
.client-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.client-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.client-header {
  display: flex;
  justify-content: between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.client-info {
  flex: 1;
}

.client-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.client-contact {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.client-contact div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.client-address {
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
}

.client-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Badges de estado */
.client-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 1rem;
}

.status-active {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.status-inactive {
  background: rgba(100, 116, 139, 0.2);
  color: var(--text-muted);
}

/* Lista de vehículos del cliente */
.client-vehicles {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.vehicles-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vehicles-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vehicle-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--gray-200);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary);
}

.vehicle-info {
  flex: 1;
}

.vehicle-main {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.vehicle-details {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.vehicle-actions {
  display: flex;
  gap: 0.5rem;
}

/* Formulario de cliente */
.client-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .client-form-grid {
    grid-template-columns: 1fr;
  }
}

.form-section {
  background: var(--gray-200);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

.form-section h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

/* Empty state mejorado */
.clients-empty {
  text-align: center;
  padding: 3rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border-color);
}

.clients-empty .icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.clients-empty h3 {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Estadísticas de clientes */
.clients-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Modal de cliente */
.client-modal .modal-content {
  max-width: 600px;
}

.client-modal .modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .client-header {
    flex-direction: column;
    align-items: stretch;
  }

  .client-actions {
    justify-content: flex-end;
    margin-top: 1rem;
  }

  .clients-toolbar {
    flex-direction: column;
  }

  .search-box {
    min-width: 100%;
  }

  .vehicle-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .vehicle-actions {
    align-self: flex-end;
  }
}

/* Efectos de hover mejorados */
.client-card {
  transition: all 0.3s ease;
}

.client-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-client {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.btn-client:hover {
  transform: translateY(-1px);
}

/* Iconos mejorados */
.client-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  margin-right: 0.5rem;
}

/* Notas del cliente */
.client-notes {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--gray-200);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--warning);
}

.notes-title {
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notes-content {
  color: var(--text-primary);
  line-height: 1.5;
}

/* ===== INDICADOR DE FILTRO ===== */
.filter-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--primary-50);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  margin: 1rem 0;
  color: var(--text-primary);
}

.filter-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-indicator .btn {
  margin-left: 1rem;
}

.filter-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--primary-50);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  margin: 1rem 0;
  color: var(--text-primary);
}

.filter-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.filter-actions {
  display: flex;
  gap: 0.5rem;
}

.filter-indicator .btn {
  margin-left: 0.5rem;
}

.vehicles-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin: 0.75rem 0;
  flex-wrap: wrap;
}

.vehicles-actions .btn {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.no-vehicles-text {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
}

.vehicles-count {
  text-align: center;
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Indicador de modo creación */
.filter-indicator.create-mode {
  background: var(--success-50);
  border-color: var(--success);
}

.filter-indicator.create-mode .filter-text {
  color: var(--success);
}

/* ===== MODAL MEJORADO - ESPACIADO Y DISEÑO ===== */
#clientModal .modal-content {
  max-width: 650px;
  max-height: 85vh;
  overflow-y: auto;
  margin: 2rem;
  padding: 0;
}

#clientModal .modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 10;
}

#clientModal .modal-header h3 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#clientModal .modal-body {
  padding: 2rem;
  max-height: calc(85vh - 80px);
  overflow-y: auto;
}

/* ===== MEJORAS DE ESPACIADO EN FORMULARIO ===== */
#clientModal .form-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#clientModal .form-section {
  background: var(--gray-100);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

#clientModal .form-section h4 {
  margin: 0 0 1.5rem 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-light);
}

#clientModal .client-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

#clientModal .form-group {
  margin-bottom: 0;
}

#clientModal .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

#clientModal .form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background: var(--bg-card);
}

#clientModal .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

#clientModal textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

#clientModal select.form-control {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1em 1em;
  padding-right: 2.5rem;
}

/* ===== ACCIONES DEL FORMULARIO ===== */
#clientModal .form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding: 1.5rem 0 0.5rem 0;
  margin-top: 1rem;
  border-top: 1px solid var(--border-color);
}

#clientModal .form-actions .btn {
  padding: 0.875rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  min-width: 120px;
}

/* ===== MEJORAS RESPONSIVE ===== */
@media (max-width: 768px) {
  #clientModal .modal-content {
    margin: 1rem;
    max-width: calc(100% - 2rem);
  }

  #clientModal .client-form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #clientModal .modal-body {
    padding: 1.5rem;
  }

  #clientModal .form-section {
    padding: 1.25rem;
  }

  #clientModal .form-actions {
    flex-direction: column-reverse;
  }

  #clientModal .form-actions .btn {
    width: 100%;
  }
}

/* ===== EFECTOS HOVER MEJORADOS ===== */
#clientModal .btn {
  transition: all 0.2s ease;
}

#clientModal .btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

#clientModal .btn:active {
  transform: translateY(0);
}

/* ===== SCROLLBAR PERSONALIZADO PARA MODAL ===== */
#clientModal .modal-body::-webkit-scrollbar {
  width: 8px;
}

#clientModal .modal-body::-webkit-scrollbar-track {
  background: var(--gray-200);
  border-radius: var(--radius-md);
}

#clientModal .modal-body::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: var(--radius-md);
}

#clientModal .modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* ===== ANIMACIONES MEJORADAS ===== */
#clientModal .modal-content {
  animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== ESTADOS DE FOCO MEJORADOS ===== */
#clientModal .btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ===== MEJORAS VISUALES ===== */
#clientModal .form-section {
  transition: box-shadow 0.2s ease;
}

#clientModal .form-section:hover {
  box-shadow: var(--shadow-sm);
}

#clientModal .form-group {
  transition: transform 0.2s ease;
}

#clientModal .form-group:focus-within {
  transform: translateX(4px);
}

/* ===== BOTÓN CERRAR MEJORADO ===== */
#clientModal .modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

#clientModal .modal-close:hover {
  background: var(--gray-200);
  color: var(--text-primary);
  transform: rotate(90deg);
}

#clientModal .modal-close:active {
  transform: rotate(90deg) scale(0.95);
}

/* ===== ICONOS MEJORADOS ===== */
#clientModal .icon {
  font-size: 1.1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.5em;
}

#clientModal .form-section h4 .icon {
  background: var(--primary);
  color: white;
  border-radius: 50%;
  padding: 0.25em;
  font-size: 0.9em;
}

#clientModal .form-actions .icon {
  margin-right: 0.5rem;
}

/* ===== TRANSICIONES SUAVES ===== */
#clientModal .modal-content {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#clientModal .form-section {
  transition: all 0.3s ease;
}

#clientModal .form-group {
  transition: all 0.2s ease;
}

/* ===== ESTADOS DE VALIDACIÓN ===== */
#clientModal .form-control:invalid:not(:focus):not(:placeholder-shown) {
  border-color: var(--danger);
  background-color: rgba(239, 68, 68, 0.05);
}

#clientModal .form-control:valid:not(:focus):not(:placeholder-shown) {
  border-color: var(--success);
  background-color: rgba(16, 185, 129, 0.05);
}

/* Estilos para la página de configuración */
.full-width {
  grid-column: 1 / -1;
}

.settings-section {
  margin-bottom: 2rem;
}

.settings-section h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.setting-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.setting-card h4 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .setting-card {
    padding: 1rem;
  }
}

/* Estilos para facturas */
.row-overdue {
  background-color: rgba(239, 68, 68, 0.1) !important;
  border-left: 4px solid var(--danger);
}

.row-overdue:hover {
  background-color: rgba(239, 68, 68, 0.2) !important;
}

.text-danger {
  color: var(--danger) !important;
  font-weight: 600;
}

/* Modal de facturas */
.invoice-modal .modal-content {
  max-width: 800px;
}

.invoice-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.invoice-info-item {
  background: var(--gray-200);
  padding: 1rem;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary);
}

.invoice-info-item strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text-secondary);
}

.invoice-totals {
  background: var(--gray-200);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
  border: 2px solid var(--primary-light);
}

/* Estados de factura */
.status-badge.pendiente {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.pagada {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.vencida {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge.cancelada {
  background: rgba(107, 114, 128, 0.2);
  color: #6b7280;
  border: 1px solid rgba(107, 114, 128, 0.3);
}


/* ===== ESTILOS PARA PÁGINA DE REGISTRO ===== */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  background: var(--bg-body);
}

.login-container h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.form {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
}

.form input {
  width: 100%;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: var(--gray-100);
  color: var(--text-primary);
  transition: var(--transition);
}

.form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  background: var(--gray-200);
}

.form input::placeholder {
  color: var(--text-muted);
}

.form button {
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.5rem;
}

.form button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.form button:active {
  transform: translateY(0);
}

.login-container p {
  margin-top: 1.5rem;
  color: var(--text-secondary);
  text-align: center;
}

.login-container a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.login-container a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.error {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--danger);
  margin-top: 1rem;
  font-weight: 500;
  text-align: center;
}

.success {
  color: var(--success);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--success);
  margin-top: 1rem;
  font-weight: 500;
  text-align: center;
}

/* Responsive */
@media (max-width: 480px) {
  .login-container {
    padding: 1rem;
  }

  .form {
    padding: 2rem 1.5rem;
  }

  .login-container h1 {
    font-size: 2rem;
  }
}