/* Manage Avatar Dialog Stylesheet */

.mav-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: 10100;
    padding: 20px;
}

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

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

.mav-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    flex: 1;
}

/* *******************************************************
 * Camera
 * ******************************************************* */

.mav-camera-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 3;
    background: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

#mavCameraFeed {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #222;
}

.mav-crop-circle {
    position: absolute;
    border: 5px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    /* Initial size/position set by JS */
    width: 180px;
    height: 180px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* *******************************************************
 * Controls
 * ******************************************************* */

.mav-controls {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Arrow pad */
.mav-arrow-pad {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.mav-arrow-middle-row {
    display: flex;
    align-items: center;
    gap: 2px;
}

.mav-arrow-center {
    width: 36px;
    height: 36px;
}

.mav-arrow-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #d0d0d0;
    border-radius: 6px;
    background: #f5f5f5;
    color: #444;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.mav-arrow-btn:hover {
    background: #e8e8f0;
    border-color: #667eea;
    color: #667eea;
}

.mav-arrow-btn:active {
    background: #ddddf5;
    transform: scale(0.93);
}

/* Zoom pad */
.mav-zoom-pad {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mav-zoom-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #d0d0d0;
    border-radius: 8px;
    background: #f5f5f5;
    color: #444;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.mav-zoom-btn:hover {
    background: #e8e8f0;
    border-color: #667eea;
    color: #667eea;
}

.mav-zoom-btn:active {
    background: #ddddf5;
    transform: scale(0.93);
}

/* *******************************************************
 * Source row (Upload / Gravatar)
 * ******************************************************* */

.mav-source-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.mav-source-btn {
    min-width: 90px;
}

/* *******************************************************
 * Select button row
 * ******************************************************* */

.mav-select-row {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 16px;
}

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

/* Mobile full-screen handled by dialog-base.css */
