/* Estilos personalizados para Club Don Bosco */

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --secondary: #4f46e5;
  --accent: #dc2626;
}

/* Mejoras de tipografía */
h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Tarjetas mejoradas */
.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
  border-bottom: 1px solid #e2e8f0;
  padding: 1.5rem;
  background: linear-gradient(to right, #f0f9ff, #eef2ff);
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  border-top: 1px solid #e2e8f0;
  padding: 1.5rem;
  background-color: #f9fafb;
}

/* Botones mejorados */
.btn-primary {
  background: linear-gradient(to right, #2563eb, #4f46e5);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(to right, #1d4ed8, #4338ca);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background-color: #e5e7eb;
  color: #111827;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-secondary:hover {
  background-color: #d1d5db;
}

.btn-danger {
  background-color: #ef4444;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-danger:hover {
  background-color: #dc2626;
}

/* Formularios mejorados */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  background-color: white;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input[type="text"]:disabled,
input[type="email"]:disabled,
select:disabled,
textarea:disabled {
  background-color: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

/* Badges de estado */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-success {
  background-color: #dcfce7;
  color: #166534;
}

.badge-danger {
  background-color: #fee2e2;
  color: #991b1b;
}

.badge-warning {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-info {
  background-color: #dbeafe;
  color: #1e40af;
}

/* Tablas mejoradas */
table {
  width: 100%;
  font-size: 0.875rem;
}

thead {
  background: linear-gradient(to right, #f0f9ff, #eef2ff);
  border-bottom: 2px solid #bfdbfe;
}

th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
}

tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.3s ease;
}

tbody tr:hover {
  background-color: #f0f9ff;
}

td {
  padding: 1rem;
}

/* Enlaces con estilo */
a {
  color: #2563eb;
  transition: color 0.3s ease;
}

a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Alertas mejoradas */
.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.alert-success {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.alert-danger {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.alert-warning {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.alert-info {
  background-color: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #1e40af;
}

/* Dark mode styles */
.dark .card {
  background-color: #1e293b;
  border-color: #475569;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dark .card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.dark .card-header {
  border-bottom-color: #475569;
  background: linear-gradient(to right, #0f172a, #1e293b);
}

.dark .card-body {
  background-color: #1e293b;
  color: #e2e8f0;
}

.dark .card-footer {
  border-top-color: #475569;
  background-color: #0f172a;
  color: #e2e8f0;
}

.dark .btn-primary {
  background: linear-gradient(to right, #1e40af, #4338ca);
}

.dark .btn-primary:hover {
  background: linear-gradient(to right, #172b7f, #3730a3);
}

.dark .btn-secondary {
  background-color: #475569;
  color: #f1f5f9;
}

.dark .btn-secondary:hover {
  background-color: #64748b;
}

.dark input[type="text"],
.dark input[type="email"],
.dark input[type="password"],
.dark input[type="number"],
.dark input[type="date"],
.dark select,
.dark textarea {
  background-color: #334155;
  border-color: #64748b;
  color: #f1f5f9;
}

.dark input[type="text"]:focus,
.dark input[type="email"]:focus,
.dark input[type="password"]:focus,
.dark input[type="number"]:focus,
.dark input[type="date"]:focus,
.dark select:focus,
.dark textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.dark input[type="text"]:disabled,
.dark input[type="email"]:disabled,
.dark select:disabled,
.dark textarea:disabled {
  background-color: #1e293b;
  color: #64748b;
}

.dark .badge-success {
  background-color: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.dark .badge-danger {
  background-color: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.dark .badge-warning {
  background-color: rgba(251, 146, 60, 0.2);
  color: #fed7aa;
}

.dark .badge-info {
  background-color: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.dark thead {
  background: linear-gradient(to right, #0f172a, #1e293b);
  border-bottom-color: #475569;
}

.dark th {
  color: #cbd5e1;
}

.dark tbody tr {
  border-bottom-color: #475569;
}

.dark tbody tr:hover {
  background-color: #1e293b;
}

.dark td {
  color: #e2e8f0;
}

.dark a:not([class*="text-white"]):not([class*="bg-"]) {
  color: #60a5fa;
}

.dark a:not([class*="text-white"]):not([class*="bg-"]):hover {
  color: #93c5fd;
}

.dark .alert-success {
  background-color: rgba(34, 197, 94, 0.1);
  border-color: #22c55e;
  color: #86efac;
}

.dark .alert-danger {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  color: #fca5a5;
}

.dark .alert-warning {
  background-color: rgba(251, 146, 60, 0.1);
  border-color: #fb923c;
  color: #fed7aa;
}

.dark .alert-info {
  background-color: rgba(59, 130, 246, 0.1);
  border-color: #3b82f6;
  color: #93c5fd;
}
