.dtl-alert {
  background:#eaf7ea;
  color:#2b7a2b;
  padding:8px 12px;
  border-radius:6px;
  margin:8px 0;
  animation:fadeOut 4s forwards;
}
@keyframes fadeOut {
  0%,80%{opacity:1} 100%{opacity:0; display:none}
}
/* === TOAST ALERTAS === */
.dtl-toast {
  display:none;
  position:fixed;
  bottom:30px;
  right:30px;
  background:#333;
  color:#fff;
  padding:14px 20px;
  border-radius:8px;
  box-shadow:0 3px 10px rgba(0,0,0,.3);
  font-size:15px;
  z-index:99999;
  opacity:0.95;
}
.dtl-toast-success { background:#27ae60; }
.dtl-toast-error { background:#e74c3c; }
.dtl-toast-info { background:#2980b9; }
/* === Banners flotantes === */
.dtl-banner {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 18px;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.dtl-banner-success { background: #22c55e; }
.dtl-banner-error { background: #ef4444; }

/* === Modal === */
.dtl-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 9998;
}
#dtl-modal-activity {
  position: fixed; inset: 0;
  margin: auto;
  background: #fff;
  width: 400px;
  max-width: 95%;
  padding: 20px;
  border-radius: 10px;
  display: none;
  z-index: 9999;
}
.dtl-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.dtl-modal-header h3 {
  margin: 0; font-size: 1.2em;
}
.dtl-modal-close {
  cursor: pointer; font-size: 20px; font-weight: bold; color: #555;
}
.dtl-modal-footer {
  display: flex; justify-content: flex-end; gap: 8px; margin-top: 15px;
}
.dtl-btn {
  border: none; padding: 8px 14px; border-radius: 6px; cursor: pointer;
  font-weight: 500;
}
.dtl-btn-primary { background: #2563eb; color: #fff; }
.dtl-btn-primary:hover { background: #1d4ed8; }
.dtl-btn-secondary { background: #f3f4f6; }
/* ==========================
   DTL Platform - Estilos Globales
   ========================== */

body .dtl-dashboard {
    max-width: 1200px;
    margin: 30px auto;
    font-family: system-ui, Arial, sans-serif;
    color: #222;
}

.dtl-title {
    font-size: 1.8em;
    margin-bottom: 10px;
    font-weight: 700;
}

.dtl-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.dtl-tab-btn {
    background: #f3f4f6;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.dtl-tab-btn.active,
.dtl-tab-btn:hover {
    background: #2563eb;
    color: #fff;
}

.dtl-tab-content {
    display: none;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.dtl-tab-content.active {
    display: block;
}

/* ===== Tarjetas de resumen ===== */
.dtl-cards {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.dtl-card {
    flex: 1;
    min-width: 250px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.dtl-value {
    font-size: 2em;
    font-weight: 700;
    margin-top: 10px;
}

.blue { color: #2563eb; }
.green { color: #10b981; }
.orange { color: #f97316; }

/* ===== Tablas ===== */
.dtl-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.dtl-table th,
.dtl-table td {
    border-bottom: 1px solid #eee;
    padding: 10px;
    text-align: left;
}

.dtl-table th {
    background: #f9fafb;
    font-weight: 600;
}

.dtl-table-striped tbody tr:nth-child(odd) {
    background-color: #f9fafb;
}

.dtl-empty {
    text-align: center;
    color: #999;
    padding: 20px;
}

/* ===== Botones ===== */
.dtl-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.dtl-btn:hover {
    background: #1e40af;
}

.dtl-btn-small {
    padding: 6px 8px;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Icono dentro del botón */
.dtl-btn i {
    font-style: normal;
    display: inline-block;
    width: 16px;
    height: 16px;
    text-align: center;
}

/* ===== Formularios ===== */
.dtl-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
    margin-bottom: 15px;
}

.dtl-form input,
.dtl-form select,
.dtl-form textarea {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    flex: 1;
    font-size: 14px;
}

.dtl-form label {
    font-weight: 500;
}

.dtl-form button {
    white-space: nowrap;
}

/* ===== Mensajes de notificación ===== */
.dtl-banner {
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-weight: 500;
    display: none;
    animation: fadeInOut 3s ease forwards;
}

.dtl-banner.success { background: #dcfce7; color: #166534; }
.dtl-banner.error   { background: #fee2e2; color: #991b1b; }

@keyframes fadeInOut {
    0%   { opacity: 0; transform: translateY(-8px); }
    10%  { opacity: 1; transform: translateY(0); }
    90%  { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-8px); }
}

/* ===== Responsividad ===== */
@media (max-width: 768px) {
    .dtl-tabs {
        flex-direction: column;
    }
    .dtl-cards {
        flex-direction: column;
    }
}
/* ===== Modales (popup) ===== */
.dtl-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dtl-modal-overlay.active {
    opacity: 1;
}

.dtl-modal {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    position: relative;
}

.dtl-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.dtl-modal-content h2 {
    margin-bottom: 8px;
    font-size: 1.5em;
}

.dtl-modal-content table {
    margin-top: 10px;
}
/* --- Corrección de interactividad para iconos y botones --- */
.dtl-card-actions .dtl-icon {
  display: inline-block;
  cursor: pointer;
  padding: 4px;
  margin-left: 6px;
  transition: transform 0.15s ease;
}
.dtl-card-actions .dtl-icon:hover {
  transform: scale(1.2);
}
#dtl-add-trainer {
  cursor: pointer;
}
/* ================================
   BLOQUE UNIFICADO: POPUPS Y CARDS
   ================================ */

/* --- Tarjetas (cards) --- */
.dtl-card-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.dtl-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 16px 18px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dtl-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.dtl-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.dtl-card-header h3 {
  margin: 0;
  font-size: 1.1em;
  color: #111;
}

.dtl-card-body p {
  margin: 2px 0;
  font-size: 0.95em;
  color: #444;
}

/* --- Iconos de acción (sin botones) --- */
.dtl-card-actions {
  display: flex;
  gap: 6px;
}

.dtl-card-actions .dtl-icon {
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.dtl-card-actions .dtl-icon:hover {
  background: #f3f4f6;
  transform: scale(1.2);
}

/* --- Colores visuales según acción --- */
.dtl-icon[data-action="view"] { color: #2563eb; }
.dtl-icon[data-action="edit"] { color: #f59e0b; }
.dtl-icon[data-action="delete"] { color: #ef4444; }

/* --- Toolbar superior --- */
.dtl-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 15px;
}

/* --- Popups universales (igual que actividades) --- */
.dtl-popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.45);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.dtl-popup.active {
  display: flex;
}

.dtl-popup-content {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.95);}
  to {opacity: 1; transform: scale(1);}
}

.dtl-popup-content h3 {
  margin-top: 0;
  font-size: 1.2em;
  font-weight: 600;
  color: #111;
}

.dtl-popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 15px;
}

.dtl-btn-primary {
  background: #2563eb;
  color: #fff;
}

.dtl-btn-primary:hover {
  background: #1e40af;
}

.dtl-btn-secondary,
.dtl-btn-close {
  background: #f3f4f6;
  border: none;
  color: #333;
}

.dtl-btn-secondary:hover,
.dtl-btn-close:hover {
  background: #e5e7eb;
}

