/* ✅ Mantiene el diseño general del sitio */
body {
    padding-top: 20px;
    font-family: Arial, sans-serif;
    color: #333;
    margin: 0;
}

/* ✅ Contenedor para formularios */
.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* ✅ Ajuste de la clase .container para formularios */
.container {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 400px;
    text-align: center;
    margin: 0 auto;
    overflow-x: hidden;
}

/* ✅ Contenedor principal del Admin */
.admin-container {
    width: 95%;
    max-width: 1300px;
    margin: 50px auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    overflow: visible;
    position: relative;
}

/* ✅ Envolver la tabla y permitir scroll horizontal */
.admin-table-wrapper {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
}

/* ✅ Diseño de la tabla en el panel de administración */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: transparent;
}

.admin-table th, .admin-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    white-space: nowrap;
}

.admin-table th {
    background: #000;
    color: rgb(251, 255, 0);
    font-weight: bold;
    text-transform: uppercase;
}

.admin-table tr:nth-child(even) {
    background: #f2f2f2;
}

.admin-table tr:nth-child(odd) {
    background: #fff;
}

/* ✅ Estilos para los botones */
.btn {
    padding: 8px 12px;
    text-decoration: none;
    color: rgb(251, 255, 0);
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    display: inline-block;
}

.btn-edit {
    background: #000;
    border: 1px solid #000;
}

.btn-delete {
    background: #dc3545;
    border: 1px solid #dc3545;
}

.btn:hover {
    opacity: 0.8;
}

/* ✅ Estilos para el total de inscritos */
.total-inscritos {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
}

/* ✅ Ajuste de botones */
.admin-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 5px;
}

/* ✅ Mantiene el estilo de los inputs y selects */
input, select, textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* ✅ Botones de formulario */
button, .button {
    background: #000000;
    color: rgb(251, 255, 0);
    padding: 10px;
    border: none;
    width: 100%;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

button:hover, .button:hover {
    background: #e68900;
}

/* ✅ Asegura que los botones de radio (Sí/No) estén en línea */
.radio-group {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.radio-group input[type="radio"] {
    margin-right: 5px;
    width: 16px;
    height: 16px;
}

/* ✅ Botón para expandir/contraer tabla */
.table-toggle {
    background: #000;
    color: rgb(251, 255, 0);
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 15px;
}

.table-toggle:hover {
    background: #e68900;
}

/* ✅ Ajustes para móviles */
@media (max-width: 800px) {
    .container {
        width: 90%;
        padding: 20px;
    }

    .admin-container {
        width: 95%;
        padding: 20px;
    }

    form {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    input, select, textarea, button {
        font-size: 16px;
        width: 100%;
        max-width: 100%;
        padding: 8px;
    }

    .admin-table {
        font-size: 14px;
    }

    .btn {
        font-size: 12px;
        padding: 6px 10px;
    }

    h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .radio-group {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 10px;
    }

    button {
        margin-top: 25px;
    }
}
