/* css para crear nueva plaza de oposición */

/* Contenedor general */
body .opomania-crear-plaza {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Título */
body .opomania-crear-plaza h3 {
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    text-align: center;
}

/* Inputs */
body .opomania-crear-plaza form input[type="text"],
body .opomania-crear-plaza form input[type="date"] {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 15px;
    transition: all 0.2s ease;
    background: #f9fafb !important;
    box-shadow: none !important;
}

body .opomania-crear-plaza form input:focus {
    border-color: #2563eb !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15) !important;
    outline: none !important;
}

/* Botón */
body .opomania-crear-plaza form button {
    width: 100%;
    padding: 12px;
    background: #2563eb !important;
    color: white !important;
    font-size: 16px;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: background 0.2s ease;
    font-weight: 600;
}

body .opomania-crear-plaza form button:hover {
    background: #1e4fcf !important;
}

/* Mensaje */
body #opomania-plaza-msg {
    margin-top: 15px;
    font-size: 15px;
    text-align: center;
}
.opomania-listado-plazas {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    max-width: 95%;
    margin: 20px auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.opomania-listado-plazas h3 {
    text-align: center;
    margin-bottom: 20px;
}

.opomania-plazas-tabla {
    width: 100%;
    border-collapse: collapse;
}

.opomania-plazas-tabla th,
.opomania-plazas-tabla td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.opomania-plazas-tabla th {
    background: #f3f4f6;
    font-weight: 600;
}
/* Fondo oscuro */
#opomania-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.opomania-modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 420px;
    max-width: 90%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.opomania-modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

/* Fondo oscuro de la modal */
#opomania-modal,
#opomania-modal-eliminar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55); /* oscurece el fondo */
    display: none;
    justify-content: center;      /* centra horizontal */
    align-items: center;          /* centra vertical */
    z-index: 99999;
}

/* Caja de la modal */
.opomania-modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 420px;
    max-width: 90%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    animation: opomaniaFadeIn 0.2s ease-out;
}

/* Animación suave */
@keyframes opomaniaFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}
