/* ========================================
   USERS MANAGER — EURO APAVOL SA
   Panel utilizatori în Configurare
   ======================================== */

.um-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Toolbar ──────────────────────────── */

.um-toolbar {
    display: flex;
    justify-content: flex-end;
}

/* ── Buttons ──────────────────────────── */

.um-btn {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.um-btn:active { transform: scale(0.97); }

.um-btn-primary {
    background: #f0fdfa;
    color: #0f766e;
    border: 1.5px solid #99f6e4;
    box-shadow: none;
}

.um-btn-primary:hover {
    background: #ccfbf1;
    border-color: #5eead4;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.um-btn-ghost {
    background: transparent;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
}

.um-btn-ghost:hover {
    background: #f1f5f9;
    color: #475569;
}

.um-btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.15s ease;
}

.um-btn-icon:hover { background: #f1f5f9; color: #1e293b; border-color: #cbd5e1; }
.um-btn-edit:hover { color: #2563eb; border-color: #93c5fd; background: #eff6ff; }
.um-btn-key:hover { color: #d97706; border-color: #fcd34d; background: #fffbeb; }
.um-btn-del:hover { color: #dc2626; border-color: #fca5a5; background: #fef2f2; }
.um-btn-del:disabled { opacity: 0.3; cursor: not-allowed; }
.um-btn-del:disabled:hover { background: #fff; color: #64748b; border-color: #e2e8f0; }

/* ── Card ─────────────────────────────── */

.um-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.um-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 18px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.um-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.um-card--editing {
    border-color: #99f6e4;
    background: #f0fdfa;
    box-shadow: 0 2px 12px rgba(13,148,136,0.08);
}

.um-card-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.um-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.um-details {
    min-width: 0;
}

.um-name {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.um-username {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.um-login-tag {
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.um-login-tag strong {
    color: #0f172a;
    font-weight: 700;
}

/* ── Badges ────────────────────────────── */

.um-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.um-badge-admin {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.um-badge-user {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.um-badge-warn {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
    font-size: 11px;
}

/* ── Meta ──────────────────────────────── */

.um-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.um-meta-date {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
}

/* ── Actions ──────────────────────────── */

.um-card-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* ── Form ─────────────────────────────── */

.um-add-form {
    margin-bottom: 4px;
}

.um-form {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.um-card--editing .um-form {
    background: transparent;
    border: none;
    padding: 4px 0;
    box-shadow: none;
}

/* Form header */
.um-form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.um-form-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.um-form-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.um-form-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

/* Form sections */
.um-form-section {
    margin-bottom: 18px;
}

.um-form-section-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.um-form-section-label svg {
    color: #cbd5e1;
}

.um-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.um-form-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 5px;
}

/* Input with icon wrapper */
.um-input-wrap {
    position: relative;
    width: 100%;
}

.um-input-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    transition: color 0.15s;
}

.um-input-wrap:focus-within .um-input-icon {
    color: #0d9488;
}

.um-input {
    width: 100%;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    padding: 10px 12px;
    outline: none;
    transition: all 0.15s ease;
}

.um-input--icon {
    padding-left: 34px;
}

.um-input:hover { border-color: #cbd5e1; background: #fff; }
.um-input:focus { border-color: #0d9488; background: #fff; box-shadow: 0 0 0 3px rgba(13,148,136,0.08); }
.um-input::placeholder { color: #b0bec5; font-weight: 400; }

select.um-input {
    cursor: pointer;
    appearance: auto;
}

/* Toggle password button */
.um-toggle-pwd {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}

.um-toggle-pwd:hover { color: #475569; }

.um-form-error {
    display: none;
    font-size: 13px;
    font-weight: 500;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 10px;
}

.um-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.um-empty {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-size: 14px;
}

/* ── Responsive ───────────────────────── */

@media (max-width: 768px) {
    .um-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .um-card-actions {
        align-self: flex-end;
    }

    .um-form-grid {
        grid-template-columns: 1fr;
    }

    .um-form-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }
}