﻿/* Namespace: User New (.un-) */
.un-page-wrapper {
    padding: 30px 20px;
    margin-left: 0;
    width: 100%;
    max-width: 1100px;
}

.un-modern-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.un-card-header {
    background-color: #f8faff;
    padding: 25px 40px;
    border-bottom: 1px solid #e2e8f0;
}

.un-header-flex {
    display: flex;
    align-items: center;
    gap: 20px;
}

.un-icon-main {
    font-size: 2rem;
    color: #006bb7;
    background: white;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.un-card-body {
    padding: 40px;
}

.un-label {
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}

.un-input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

    .un-input-group i {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
        z-index: 10;
    }

.un-custom-input {
    padding: 12px 12px 12px 45px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 0.95rem;
}

/* FIX RADZEN DROPDOWN AISLADO */
.un-page-wrapper .rz-dropdown.un-custom-dropdown {
    height: 48px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
}

/* Mover el texto dentro del dropdown */
.un-page-wrapper .un-custom-dropdown .rz-dropdown-label,
.un-page-wrapper .un-custom-dropdown .rz-placeholder {
    padding-left: 45px !important; /* Hueco para el icono */
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

.un-dropdown-icon {
    pointer-events: none !important;
}

/* Footer y Botones */
.un-card-footer {
    padding: 20px 40px;
    background-color: #f8faff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.un-btn-save {
    background-color: #006bb7;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 8px;
    font-weight: 600;
}

.un-btn-cancel {
    background-color: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 10px 30px;
    border-radius: 8px;
    font-weight: 600;
}


/* Namespace: User Roles (.ur-) */
.ur-page-wrapper {
    padding: 30px 20px;
    margin-left: 0;
    width: 100%;
    max-width: 1100px;
}

.ur-modern-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.ur-card-header {
    background-color: #f8faff;
    padding: 25px 40px;
    border-bottom: 1px solid #e2e8f0;
}

.ur-header-flex {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ur-icon-main {
    font-size: 2rem;
    color: #006bb7;
    background: white;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ur-card-body {
    padding: 40px;
}

/* Perfil de Usuario Mini */
.ur-user-profile-mini {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f1f5f9;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.ur-avatar i {
    font-size: 2.5rem;
    color: #64748b;
}

.ur-name {
    font-weight: bold;
    color: #1e293b;
    font-size: 1.1rem;
}

.ur-email {
    font-size: 0.9rem;
    color: #64748b;
}

.ur-section-title {
    font-weight: bold;
    margin-bottom: 20px;
    color: #475569;
    font-size: 1rem;
}

/* Lista de Roles */
.ur-roles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ur-role-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 25px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

    .ur-role-item:hover {
        background-color: #f8faff;
        border-color: #006bb7;
    }

    .ur-role-item.active {
        background-color: #eff6ff;
        border-color: #006bb7;
        box-shadow: 0 0 0 3px rgba(0, 107, 183, 0.1);
    }

.ur-role-name {
    font-weight: 600;
    color: #334155;
    font-size: 1rem;
}

.ur-badge-current {
    background-color: #006bb7;
    color: white;
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Warning Box */
.ur-warning-box {
    background-color: #fff7ed;
    color: #9a3412;
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid #ffedd5;
    font-size: 0.95rem;
}

/* Footer y Botones a la Derecha */
.ur-card-footer {
    padding: 25px 40px;
    background-color: #f8faff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.ur-btn-cancel {
    background-color: #006bb7;
    color: white;
    border: none;
    padding: 10px 35px;
    border-radius: 8px;
    font-weight: 600;
}

.ur-btn-ghost {
    background-color: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
}

    .ur-btn-ghost:hover {
        color: #dc2626;
        border-color: #fca5a5;
    }

.ur-status-display, .ur-error-container {
    text-align: center;
    padding: 100px 0;
}

/* Feedback visual de bloqueo */
.ur-role-item.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #f1f5f9;
}

/* Spinner opcional para los botones si quieres más detalle */
.ur-btn-cancel:disabled, .ur-btn-ghost:disabled {
    cursor: not-allowed;
    filter: grayscale(1);
}