/* === Estilo base general === */
.amg-container {
    margin: 20px auto;
    max-width: 1200px;
    padding: 15px;
    font-family: 'Segoe UI', sans-serif;
    color: #333;
}

.amg-section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #003366;
    border-bottom: 2px solid #0077cc;
    padding-bottom: 5px;
}

/* === Grillas y tarjetas === */
.amg-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: start;
}

.amg-card {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    width: 280px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}
.amg-card:hover {
    transform: scale(1.02);
}
.amg-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #004080;
}
.amg-card p {
    margin: 5px 0;
    font-size: 14px;
}

/* === Tablas (asistencia, pagos, ranking, etc.) === */
.amg-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
}
.amg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.amg-table th,
.amg-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}
.amg-table th {
    background-color: #f2f2f2;
    color: #003366;
}

/* === Botones y acciones === */
.amg-btn {
    background-color: #0077cc;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}
.amg-btn:hover {
    background-color: #005fa3;
}

.amg-btn-secondary {
    background-color: #ccc;
    color: #333;
}
.amg-btn-secondary:hover {
    background-color: #aaa;
}

/* === Formulario básico === */
.amg-form-group {
    margin-bottom: 15px;
}
.amg-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}
.amg-form-group input,
.amg-form-group select,
.amg-form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #aaa;
    border-radius: 5px;
}

/* === Mensajes y alertas === */
.amg-alert {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 5px;
}
.amg-alert-success {
    background-color: #d4edda;
    color: #155724;
}
.amg-alert-error {
    background-color: #f8d7da;
    color: #721c24;
}
.amg-alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* === Ranking de asistencia === */
.amg-ranking-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.amg-ranking-medal {
    width: 24px;
    height: 24px;
}
.amg-ranking-name {
    font-weight: bold;
}

/* === Filtros === */
.amg-filters {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* === Responsive === */
@media screen and (max-width: 768px) {
    .amg-grid {
        flex-direction: column;
    }
    .amg-card {
        width: 100%;
    }
    .amg-filters {
        flex-direction: column;
    }
}
/* Estilos para el panel de configuración de MyClubPilot */
form[action="options.php"] label {
    font-weight: bold;
    margin-bottom: 4px;
    display: inline-block;
}

form[action="options.php"] .description {
    color: #666;
    font-size: 0.9em;
    margin-top: 2px;
}

form[action="options.php"] input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 10px;
}

.wrap h1 {
    margin-bottom: 20px;
}

.amg-btn {
    display: inline-block;
    background: #1e87f0;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin: 10px 0;
}
.amg-btn:hover {
    background: #0f7ae5;
}

.amg-export-buttons {
    margin-top: 10px;
}
.amg-export-buttons .btn-export {
    display: inline-block;
    background-color: #0073aa;
    color: #fff;
    padding: 6px 12px;
    text-decoration: none;
    margin-right: 10px;
    border-radius: 4px;
}
.amg-export-buttons .btn-export:hover {
    background-color: #005f8d;
}

.amg-tabla-asistencia {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
}
.amg-tabla-asistencia th,
.amg-tabla-asistencia td {
  border: 1px solid #ddd;
  padding: 8px;
}
.amg-tabla-asistencia th {
  background: #f0f0f0;
  text-align: left;
}

.amg-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #333;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  font-size: 14px;
}
.amg-toast.visible {
  opacity: 1;
  transform: translateY(0);
}
.amg-toast.success {
  background-color: #28a745;
}
.amg-toast.error {
  background-color: #dc3545;
}
