#gf-asistencia-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: auto;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

.modal-content h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

#gf-students-list {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

#gf-students-list table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

#gf-students-list th, #gf-students-list td {
    border: 1px solid #ddd;
    padding: 10px 8px;
    text-align: left;
    vertical-align: middle;
}

#gf-students-list th {
    background-color: #5263ff;
    font-weight: bold;
    text-align: center;
}

#gf-students-list td:nth-child(1),
#gf-students-list td:nth-child(2) {
    text-align: left;
    white-space: nowrap;
}

#gf-students-list td input[type="radio"] {
    margin: 0;
    cursor: pointer;
    transform: scale(1.2);
}

#gf-students-list td:nth-child(n+3) {
    text-align: center;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.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;
    color: white;
}

#gf-save-attendance:hover {
    background-color: #45a049;
}

#gf-close-modal {
    background-color: #f44336;
    color: white;
}

#gf-close-modal:hover {
    background-color: #da190b;
}

#gf-open-attendance-modal {
    background-color: #0073aa;
    color: white;
    margin-top: 20px;
    display: block;
    width: auto;
}

#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;
    }
    .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;
}

.gform_wrapper.gform_wrapper_72 .gform_button {
    display: none !important;
}

/* Estilos para mensajes de estado */
#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"] {
    background-color: #e6ffe6;
    border-color: #a3e9a4;
}

#gf-modal-status-message[style*="color: red"] {
    background-color: #ffe6e6;
    border-color: #e9a3a3;
}