/* ============================================
   AVATAR EDITOR MODAL
   ============================================ */

.marnyl-avatar-editor-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marnyl-avatar-editor-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.marnyl-avatar-editor-content {
    position: relative;
    background: #ff69b4;
    border: 5px solid #000;
    max-width: 450px;
    width: 90%;
    box-shadow: 10px 10px 0 #000;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.marnyl-avatar-editor-header {
    background: #fff;
    border-bottom: 5px solid #000;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.marnyl-avatar-editor-header h3 {
    font-size: 1.5rem;
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
    margin: 0;
}

.marnyl-avatar-editor-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #000;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.marnyl-avatar-editor-close:hover {
    transform: scale(1.2);
}

.marnyl-avatar-editor-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

#avatarCanvas {
    width: 100%;
    max-width: 350px;
    height: auto;
    aspect-ratio: 1;
    border: 5px solid #000;
    cursor: move;
    background: #f0f0f0;
}

.marnyl-avatar-editor-controls {
    width: 100%;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.95);
    border: 5px solid #000;
    padding: 20px;
}

.marnyl-avatar-editor-control {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.marnyl-avatar-editor-control label {
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
    font-size: 0.9rem;
}

#zoomSlider {
    width: 100%;
    height: 8px;
    background: #000;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

#zoomSlider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 25px;
    height: 25px;
    background: #ff69b4;
    border: 3px solid #000;
    cursor: pointer;
}

#zoomSlider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background: #ff69b4;
    border: 3px solid #000;
    cursor: pointer;
}

.marnyl-avatar-editor-hint {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    font-weight: 600;
}

.marnyl-avatar-editor-footer {
    background: #fff;
    border-top: 5px solid #000;
    padding: 20px 30px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.marnyl-avatar-editor-btn {
    padding: 12px 30px;
    border: 3px solid #000;
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.marnyl-avatar-editor-btn.primary {
    background: #ff69b4;
    color: #000;
}

.marnyl-avatar-editor-btn.secondary {
    background: #fff;
    color: #000;
}

.marnyl-avatar-editor-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #000;
}

.marnyl-avatar-editor-btn:active {
    transform: translate(1px, 1px);
    box-shadow: none;
}

