#gf-asistencia-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7); /* Fondo más oscuro para mayor contraste */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: auto; /* Permitir scroll si el contenido es demasiado alto */
}

.modal-content {
    background: #fff;
    padding: 30px; /* Más padding */
    border-radius: 8px; /* Bordes más suaves */
    width: 90%; /* Más ancho */
    max-width: 900px; /* Ancho máximo para pantallas grandes */
    max-height: 90vh; /* Alto máximo */
    overflow-y: auto; /* Scroll para el contenido si es necesario */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Sombra para efecto 3D */
    display: flex;
    flex-direction: column; /* Organizar elementos en columna */
}

.modal-content h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

#gf-students-list {
    flex-grow: 1; /* Permitir que ocupe espacio disponible */
    overflow-y: auto; /* Scroll interno para la lista de estudiantes */
    margin-bottom: 20px; /* Espacio antes de los botones */
}

#gf-students-list table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

#gf-students-list th, #gf-students-list td {
    border: 1px solid #ddd; /* Líneas de tabla más claras */
    padding: 10px 8px; /* Más padding en celdas */
    text-align: left; /* Alineación de texto a la izquierda por defecto */
    vertical-align: middle;
}

#gf-students-list th {
    background-color: #5263ff;
    font-weight: bold;
    text-align: center; /* Centrar texto en encabezados relevantes (Presente, Tarde, etc.) */
}

#gf-students-list td:nth-child(1), /* Nombre */
#gf-students-list td:nth-child(2) { /* Cédula */
    text-align: left;
    white-space: nowrap; /* Evitar saltos de línea en nombres y cédulas */
}

#gf-students-list td input[type="radio"] {
    margin: 0; /* Eliminar margen predeterminado */
    cursor: pointer;
    transform: scale(1.2); /* Agrandar un poco los radio buttons */
}

/* Centrar los radio buttons */
#gf-students-list td:nth-child(n+3) {
    text-align: center;
}

.modal-actions {
    display: flex;
    justify-content: flex-end; /* Alinear botones a la derecha */
    gap: 10px; /* Espacio entre botones */
    padding-top: 15px;
    border-top: 1px solid #eee; /* Separador */
}

.modal-actions button, #gf-open-attendance-modal {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#gf-save-attendance {
    background-color: #4CAF50; /* Verde */
    color: white;
}

#gf-save-attendance:hover {
    background-color: #45a049;
}

#gf-close-modal {
    background-color: #f44336; /* Rojo */
    color: white;
}

#gf-close-modal:hover {
    background-color: #da190b;
}

#gf-open-attendance-modal {
    background-color: #0073aa; /* Azul estándar de WordPress */
    color: white;
    margin-top: 20px; /* Espacio por encima del botón */
    display: block; /* Asegurarse de que ocupe su propia línea */
    width: auto; /* Ancho automático */
}

#gf-open-attendance-modal:hover {
    background-color: #006799;
}

/* Responsive design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 15px;
    }
    #gf-students-list th, #gf-students-list td {
        padding: 5px;
        font-size: 13px;
    }
    #gf-students-list table {
        font-size: 12px;
    }
    .modal-actions button {
        padding: 8px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    #gf-students-list th, #gf-students-list td {
        font-size: 11px;
    }
    .modal-actions {
        flex-direction: column; /* Botones en columna en móviles pequeños */
    }
    .modal-actions button {
        width: 100%;
    }
}
/* Oculta el botón de envío por defecto del Formulario 72 */
#gform_wrapper_72 .gform_footer input[type="submit"] {
    display: none !important;
}
/* Algunos temas pueden necesitar una especificidad extra */
.gform_wrapper.gform_wrapper_72 .gform_button {
    display: none !important;
}
/* En tu style.css o estilos del tema */
#gf-modal-status-message {
    padding: 10px;
    border: 1px solid;
    margin-bottom: 20px;
    text-align: center;
    border-radius: 5px;
}
#gf-modal-status-message[style*="color: green"] { /* Estilo para mensajes de éxito */
    background-color: #e6ffe6;
    border-color: #a3e9a4;
}
#gf-modal-status-message[style*="color: red"] { /* Estilo para mensajes de error */
    background-color: #ffe6e6;
    border-color: #e9a3a3;
}