/* Manage User Account Dialog Stylesheet */

.mua-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.mua-modal-dialog {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 480px;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 90vh;
}

/* *******************************************************
 * Body
 * ******************************************************* */

.mua-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

/* *******************************************************
 * Top row: avatar + stats
 * ******************************************************* */

.mua-top-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.mua-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.mua-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #e0e0e0;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid #667eea;
    transition: border-color 0.2s ease, transform 0.15s ease;
}

.mua-avatar:hover {
    border-color: #764ba2;
    transform: scale(1.05);
}

.mua-avatar svg {
    width: 100%;
    height: 100%;
}

.mua-avatar-hint {
    font-size: 0.72rem;
    color: #999;
    margin-top: 5px;
    text-align: center;
}

.mua-info-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    padding-top: 6px;
}

.mua-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mua-stat-label {
    font-size: 0.82rem;
    color: #777;
    min-width: 90px;
}

.mua-stat-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

/* *******************************************************
 * Section labels
 * ******************************************************* */

.mua-section-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 16px 0 10px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e8e8e8;
}

/* *******************************************************
 * Form fields
 * ******************************************************* */

.mua-field-group {
    margin-bottom: 12px;
}

.mua-field-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.mua-field-group input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    box-sizing: border-box;
    transition: border-color 0.25s ease;
    font-family: inherit;
}

.mua-field-group input:focus {
    outline: none;
    border-color: #667eea;
}

.mua-field-group input::placeholder {
    color: #bbb;
}

.mua-readonly {
    background: #f5f5f5;
    color: #777;
    cursor: not-allowed;
}

/* *******************************************************
 * Buttons
 * ******************************************************* */

.mua-button-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.mua-security-row {
    margin-top: 6px;
    justify-content: flex-start;
}

/* *******************************************************
 * Responsive
 * ******************************************************* */

@media (max-width: 600px) {
    .mua-body {
        padding: 16px 18px;
    }

    .mua-top-row {
        flex-direction: column;
        align-items: center;
    }

    .mua-info-stats {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .mua-stat-item {
        flex-direction: column;
        align-items: center;
        gap: 2px;
        min-width: 80px;
    }
}
