/* Archivo: admin.css (CÓDIGO COMPLETO Y MEJORADO) */

/* --- Contenedor Principal del Panel --- */
.admin-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(18, 44, 79, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(91, 136, 178, 0.2);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* --- Pestañas de Filtro --- */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(91, 136, 178, 0.3);
    padding-bottom: 20px;
}
.filter-tab {
    background: transparent;
    border: 1px solid #5B88B2;
    color: #FBF9E4;
    padding: 10px 20px;
    border-radius: 9999px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}
.filter-tab:hover {
    background-color: rgba(91, 136, 178, 0.5);
    border-color: #FBF9E4;
}
.filter-tab.active {
    background-color: #FBF9E4;
    color: #122C4F;
    border-color: #FBF9E4;
    box-shadow: 0 0 15px rgba(251, 249, 228, 0.3);
}

/* --- Tarjetas de Usuario --- */
.user-card {
    background: rgba(18, 44, 79, 0.7);
    border-left: 5px solid #5B88B2;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column; 
    gap: 15px;
    transition: all 0.3s ease;
}
.user-card:hover {
    transform: translateX(5px);
    border-left-color: #00a2ff;
}
.user-info p {
    margin: 0 0 8px 0;
    color: #b4c2d0;
    font-size: 0.9rem;
}
.user-info p strong {
    color: #FBF9E4;
    font-weight: 600;
    margin-right: 5px;
}
.user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-self: flex-start; 
}

/* --- Estilos de Botones de Acción --- */
.action-btn { padding: 8px 15px; border-radius: 8px; border: none; cursor: pointer; font-weight: 600; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.action-btn:hover { transform: translateY(-2px); }
.edit-btn { background-color: #5B88B2; color: #122C4F; }
.edit-btn:hover { box-shadow: 0 4px 15px rgba(91, 136, 178, 0.4); }
.approve-btn { background-color: #28a745; color: white; }
.approve-btn:hover { box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4); }
.deny-btn { background-color: #dc3545; color: white; }
.deny-btn:hover { box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4); }

/* --- Media Queries para Responsividad --- */
@media (min-width: 768px) {
    .user-card { flex-direction: row; justify-content: space-between; align-items: center; }
    .user-actions { align-self: center; }
}

/* ▼▼▼ ======================================================= ▼▼▼ */
/* ▼▼▼   NUEVOS ESTILOS PARA EL MODAL DE EDICIÓN DE USUARIO    ▼▼▼ */
/* ▼▼▼ ======================================================= ▼▼▼ */

/* El fondo oscuro y borroso del modal (ya definido en estilos.css, pero lo reforzamos aquí) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 44, 79, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.modal.active { /* Esta clase no estaba, la añadimos para controlar la visibilidad con JS */
    opacity: 1;
    pointer-events: auto;
}

/* La ventana principal del modal */
.modal-content {
    background: rgba(18, 44, 79, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(91, 136, 178, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    overflow: hidden; /* Clave para que el header no se salga de los bordes redondeados */
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.modal.active .modal-content {
    transform: scale(1);
}

/* El encabezado del modal */
.modal-header {
    background: linear-gradient(135deg, rgba(91, 136, 178, 0.3), rgba(18, 44, 79, 0.5));
    padding: 20px 30px;
    border-bottom: 1px solid rgba(91, 136, 178, 0.2);
}
.modal-header h3 {
    color: #FBF9E4;
    font-size: 1.5rem;
    font-weight: 600;
}

/* El cuerpo del modal donde está el formulario */
.modal-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Espacio entre cada grupo de label/input */
}
.modal-body label {
    font-weight: 500;
    color: #b4c2d0;
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: block;
}
.modal-body input,
.modal-body select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #5B88B2;
    background-color: rgba(0, 0, 0, 0.3);
    color: #FBF9E4;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.modal-body input:focus,
.modal-body select:focus {
    outline: none;
    border-color: #00a2ff;
    box-shadow: 0 0 0 3px rgba(0, 162, 255, 0.3);
}
.modal-body input:disabled {
    background-color: rgba(0,0,0,0.5);
    color: #7a8a99;
    cursor: not-allowed;
}

/* La sección de los botones "Cancelar" y "Guardar" */
.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 10px;
    padding-top: 25px;
    border-top: 1px solid rgba(91, 136, 178, 0.2);
}

/* Los botones heredan los estilos de .cancel-btn y .confirm-btn de estilos.css, que ya son geniales. */